From 633a5638a7d674af2fe27bbd1fad716fe3969ed6 Mon Sep 17 00:00:00 2001 From: riccardom Date: Tue, 14 Jul 2009 19:02:15 +0000 Subject: [PATCH] Apply workaround patch for compiling against nvidia headers posted as #2819332 by larryhaja. It reports that the patch fixes compilation for him and it doesn't break it for me so hopefully there aren't regressions. Said that i've tried to define GL_GLEXT_PROTOTYPES at configure time but it breaks compilation and making OGLRender.cpp:133 not optional looks way more risky. --- desmume/src/OGLRender.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desmume/src/OGLRender.cpp b/desmume/src/OGLRender.cpp index 8b0ae5b94..868ba0679 100644 --- a/desmume/src/OGLRender.cpp +++ b/desmume/src/OGLRender.cpp @@ -54,6 +54,10 @@ static void ENDGL() { #else #include #include + /* This is a workaround needed to compile against nvidia GL headers */ + #ifndef GL_ALPHA_BLEND_EQUATION_ATI + #undef GL_VERSION_1_3 + #endif #endif #endif