diff options
| author | Bryce Harrington <b.harrington@samsung.com> | 2014-01-08 21:41:50 -0800 |
|---|---|---|
| committer | Bryce Harrington <b.harrington@samsung.com> | 2014-01-08 21:41:50 -0800 |
| commit | 71795c8f5483c8c6e06fafc64236d37fc9ac73ee (patch) | |
| tree | a8367419df267efc07665ab929a40410087cf535 /src/egl.cpp | |
| parent | b702ce6853be328ddbcf71b1f974252ae9b7c901 (diff) | |
Port to Tizen platform
Diffstat (limited to 'src/egl.cpp')
| -rw-r--r-- | src/egl.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/egl.cpp b/src/egl.cpp index 992d431..b0581db 100644 --- a/src/egl.cpp +++ b/src/egl.cpp @@ -2,7 +2,12 @@ #include <stdlib.h> #include <EGL/egl.h> +#if HAVE_GLES3_H #include <GLES3/gl3.h> +#elif HAVE_GLES2_H +#include <GLES2/gl2.h> +#endif + #include "egl.h" @@ -70,7 +75,7 @@ createEGLContextAndWindow(egl_state_t *state, int width, int height) return false; } - state->egl_surface = eglCreateWindowSurface (state->egl_display, config, state->window, NULL); + state->egl_surface = eglCreateWindowSurface (state->egl_display, config, (void*)state->window, NULL); if (state->egl_surface == EGL_NO_SURFACE) { warnx ("Cannot create EGL window surface\n"); return false; |