Separated checks for gl2.h defines and gl2ext.h defines in Evas_GL.h.
authorsung <sung@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 21 May 2012 08:01:28 +0000 (08:01 +0000)
committersung <sung@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 21 May 2012 08:01:28 +0000 (08:01 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@71270 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/Evas_GL.h

index 4177424..98d077c 100644 (file)
@@ -1038,6 +1038,17 @@ typedef signed long int  GLsizeiptr;   // Changed khronos_ssize_t
 
 #define GL_INVALID_FRAMEBUFFER_OPERATION  0x0506
 
+#else
+# ifndef EVAS_GL_NO_GL_H_CHECK
+#  error "You may only include either Evas_GL.h OR use your native OpenGL's headers. If you use Evas to do GL, then you cannot use the native gl headers."
+# endif
+#endif
+
+
+#if !defined(__glext_h_) && !defined(__gl2ext_h_)
+# define __glext_h_
+# define __gl2ext_h_
+
 //---------------------------//
 // GLES extension defines