From 94c1d41e99061d9c01c2074c802f3ab0702535bc Mon Sep 17 00:00:00 2001 From: sung Date: Mon, 21 May 2012 08:01:28 +0000 Subject: [PATCH] Separated checks for gl2.h defines and gl2ext.h defines in Evas_GL.h. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@71270 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/Evas_GL.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/lib/Evas_GL.h b/src/lib/Evas_GL.h index 4177424..98d077c 100644 --- a/src/lib/Evas_GL.h +++ b/src/lib/Evas_GL.h @@ -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 -- 2.7.4