From 46cad337e2d9002be201b66a6a6c4ba7554be14b Mon Sep 17 00:00:00 2001 From: rogerman Date: Wed, 2 Jan 2013 04:10:38 +0000 Subject: [PATCH] OpenGL Renderer: - Fix one more bug with VAO support detection. --- desmume/src/OGLRender.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/OGLRender.cpp b/desmume/src/OGLRender.cpp index 0a735d8aa..e6c383412 100644 --- a/desmume/src/OGLRender.cpp +++ b/desmume/src/OGLRender.cpp @@ -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);