summaryrefslogtreecommitdiff
path: root/src/lib/evas/Evas_GL.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-10-20 15:42:22 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-10-20 15:42:22 +0900
commit4858776205e31263a709a1d25c9eaac33f8741f6 (patch)
tree5d2e41bdf34474d9bfc62f7d0a910df160ad35f1 /src/lib/evas/Evas_GL.h
parentfb3564304e2b6664d4ab4e96f2428d0ade1f50ca (diff)
Evas GL: Fix compilation on some platforms
Damn these OpenGL headers and their typedefs!
Diffstat (limited to 'src/lib/evas/Evas_GL.h')
-rw-r--r--src/lib/evas/Evas_GL.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/evas/Evas_GL.h b/src/lib/evas/Evas_GL.h
index 65db1c22ad..5f2a8d1f71 100644
--- a/src/lib/evas/Evas_GL.h
+++ b/src/lib/evas/Evas_GL.h
@@ -879,10 +879,6 @@ typedef float GLfloat; // Changed khronos_float_t
879typedef float GLclampf; // Changed khronos_float_t 879typedef float GLclampf; // Changed khronos_float_t
880typedef signed int GLfixed; // Changed khronos_int32_t 880typedef signed int GLfixed; // Changed khronos_int32_t
881 881
882/* GL types for handling large vertex buffer objects */
883typedef signed long int GLintptr; // Changed khronos_intptr_t
884typedef signed long int GLsizeiptr; // Changed khronos_ssize_t
885
886/* OpenGL ES core versions */ 882/* OpenGL ES core versions */
887//#define GL_ES_VERSION_2_0 1 883//#define GL_ES_VERSION_2_0 1
888 884
@@ -3443,6 +3439,12 @@ typedef signed long int GLsizeiptr; // Changed khronos_ssize_t
3443# endif 3439# endif
3444#endif 3440#endif
3445 3441
3442#ifndef GL_ES_VERSION_2_0
3443/* GL types for handling large vertex buffer objects */
3444#include <stddef.h>
3445typedef ptrdiff_t GLintptr; // Changed khronos_intptr_t
3446typedef ptrdiff_t GLsizeiptr; // Changed khronos_ssize_t
3447#endif
3446 3448
3447/* Some definitions from GLES 3.0. 3449/* Some definitions from GLES 3.0.
3448 * Note: Evas_GL does NOT support GLES 3. 3450 * Note: Evas_GL does NOT support GLES 3.