Patched to compile on OpenGL ES-based platforms.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 21 Mar 2015 00:09:22 -0400
changeset 9416 d5c12b28df2d
parent 9415 93547cc94383
child 9417 86483b23f44a
Patched to compile on OpenGL ES-based platforms.
src/video/SDL_video.c
--- a/src/video/SDL_video.c	Fri Mar 20 23:29:09 2015 -0400
+++ b/src/video/SDL_video.c	Sat Mar 21 00:09:22 2015 -0400
@@ -46,6 +46,10 @@
 #include "SDL_opengles2.h"
 #endif /* SDL_VIDEO_OPENGL_ES2 && !SDL_VIDEO_OPENGL */
 
+#ifndef GL_CONTEXT_RELEASE_BEHAVIOR_KHR
+#define GL_CONTEXT_RELEASE_BEHAVIOR_KHR 0x82FB
+#endif
+
 /* On Windows, windows.h defines CreateWindow */
 #ifdef CreateWindow
 #undef CreateWindow