OpenGL Renderer:

- Fix one more bug with VAO support detection.
This commit is contained in:
rogerman 2013-01-02 04:10:38 +00:00
parent 1c08348f4d
commit 46cad337e2
1 changed files with 2 additions and 2 deletions

View File

@ -740,8 +740,8 @@ static char OGLInit(void)
// VAO Setup
isVAOSupported = ( !isVBOSupported ||
!isShaderSupported ||
strstr(extString, "GL_ARB_vertex_array_object") == NULL ||
strstr(extString, "GL_APPLE_vertex_array_object") == NULL ) ? false : true;
(strstr(extString, "GL_ARB_vertex_array_object") == NULL &&
strstr(extString, "GL_APPLE_vertex_array_object") == NULL) ) ? false : true;
if (isVAOSupported)
{
glGenVertexArrays(1, &vaoMainStatesID);