summaryrefslogtreecommitdiffstatsci
path: root/src/egl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl.cpp')
-rw-r--r--src/egl.cpp7
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;