corrected OpenGL clear color, fixed orientation bug, made debug logic better (and correct, i think)