OpenGL: use correct glEnableClientState instead of glEnable

This commit is contained in:
OV2 2010-10-04 17:36:17 +02:00
parent c4c2204f6c
commit 3a3245bc48
1 changed files with 2 additions and 3 deletions

View File

@ -86,10 +86,9 @@ bool COpenGL::Initialize(HWND hWnd)
wglSwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC)wglGetProcAddress( "wglSwapIntervalEXT" );
glEnable(GL_VERTEX_ARRAY);
glEnable(GL_TEXTURE_COORD_ARRAY);
glEnableClientState(GL_VERTEX_ARRAY);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
glEnable(GL_BLEND);
glEnable(GL_PIXEL_UNPACK_BUFFER);
glEnable(GL_TEXTURE_2D);
glMatrixMode (GL_PROJECTION);