OpenGL Renderer:

- Fix small bug with VAO support detection.
This commit is contained in:
rogerman 2013-01-02 02:34:04 +00:00
parent e20037f4c7
commit b3fa10446a
1 changed files with 4 additions and 3 deletions

View File

@ -738,9 +738,10 @@ static char OGLInit(void)
} }
// VAO Setup // VAO Setup
isVAOSupported = ( (isVBOSupported && isShaderSupported) && isVAOSupported = ( !isVBOSupported ||
(strstr(extString, "GL_ARB_vertex_array_object") == NULL || !isShaderSupported ||
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) if (isVAOSupported)
{ {
glGenVertexArrays(1, &vaoMainStatesID); glGenVertexArrays(1, &vaoMainStatesID);