diff mbox

[Branch,~glmark2-dev/glmark2/trunk] Rev 77: Use the correct GL headers depending on the flavor (desktop vs ES2).

Message ID 20110721123635.17019.59665.launchpad@loganberry.canonical.com
State Accepted
Headers show

Commit Message

alexandros.frantzis@linaro.org July 21, 2011, 12:36 p.m. UTC
------------------------------------------------------------
revno: 77
committer: Alexandros Frantzis <alexandros.frantzis@linaro.org>
timestamp: Wed 2011-03-09 01:12:05 +0200
message:
  Use the correct GL headers depending on the flavor (desktop vs ES2).
modified:
  src/oglsdl.h


--
lp:glmark2
https://code.launchpad.net/~glmark2-dev/glmark2/trunk

You are subscribed to branch lp:glmark2.
To unsubscribe from this branch go to https://code.launchpad.net/~glmark2-dev/glmark2/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'src/oglsdl.h'
--- src/oglsdl.h	2011-01-25 15:06:04 +0000
+++ src/oglsdl.h	2011-03-08 23:12:05 +0000
@@ -26,9 +26,13 @@ 
 
 #include <SDL/SDL.h>
 
+#if USE_GL
 #define GL_GLEXT_PROTOTYPES
 #include <GL/gl.h>
 #include <GL/glext.h>
-
+#elif USE_GLESv2
+#include <GLES2/gl2.h>
+#include <GLES2/gl2ext.h>
+#endif
 
 #endif