More OpenGL error checks.