Permalink
Browse files

OpenGL Renderer: Oops! Fix a bug where shaders would fail to work in …

…legacy OpenGL, even when they are actually supported. (Regression from commit 8c37d4a.)
  • Loading branch information...
rogerman committed Jul 30, 2017
1 parent 69f97b0 commit 917475b9cd6149f9809dea87b56322c8c3f31a4e
Showing with 1 addition and 1 deletion.
  1. +1 −1 desmume/src/OGLRender.cpp
@@ -1584,7 +1584,7 @@ Render3DError OpenGLRenderer_1_2::InitExtensions()
GLint maxDrawBuffersOGL = 0;
GLint maxShaderTexUnitsOGL = 0;
glGetIntegerv(GL_MAX_DRAW_BUFFERS_ARB, &maxDrawBuffersOGL);
glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB, &maxShaderTexUnitsOGL);
glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS_ARB, &maxShaderTexUnitsOGL);
if ( (maxDrawBuffersOGL >= 4) && (maxShaderTexUnitsOGL >= 8) )
{

0 comments on commit 917475b

Please sign in to comment.