From b3fa10446aeb71aeadfb124a523d3f88722fabb9 Mon Sep 17 00:00:00 2001 From: rogerman Date: Wed, 2 Jan 2013 02:34:04 +0000 Subject: [PATCH] OpenGL Renderer: - Fix small bug with VAO support detection. --- desmume/src/OGLRender.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/desmume/src/OGLRender.cpp b/desmume/src/OGLRender.cpp index feae9404d..0a735d8aa 100644 --- a/desmume/src/OGLRender.cpp +++ b/desmume/src/OGLRender.cpp @@ -738,9 +738,10 @@ 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; + isVAOSupported = ( !isVBOSupported || + !isShaderSupported || + strstr(extString, "GL_ARB_vertex_array_object") == NULL || + strstr(extString, "GL_APPLE_vertex_array_object") == NULL ) ? false : true; if (isVAOSupported) { glGenVertexArrays(1, &vaoMainStatesID);