fix initialization opengl glitch

这个提交包含在:
Eduardo Bart 2012-06-03 17:05:44 -03:00
父节点 fda3ae6809
当前提交 75f8b255ec
共有 1 个文件被更改,包括 4 次插入0 次删除

查看文件

@ -86,6 +86,10 @@ void Graphics::init()
glEnable(GL_CULL_FACE); glEnable(GL_CULL_FACE);
*/ */
// clear color buffer
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT);
// determine max texture size // determine max texture size
GLint maxTextureSize = 0; GLint maxTextureSize = 0;
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize); glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize);