static EGLSurface esfc;
static EGLContext ectxt;
+/* for external flips */
+void *gl_es_display;
+void *gl_es_surface;
+
static int gl_have_error(const char *name)
{
GLenum e = glGetError();
if (gl_have_error("init"))
goto out;
+ gl_es_display = (void *)edpy;
+ gl_es_surface = (void *)esfc;
retval = 0;
out:
free(tmp_texture_mem);
eglTerminate(edpy);
edpy = EGL_NO_DISPLAY;
+ gl_es_display = (void *)edpy;
+ gl_es_surface = (void *)esfc;
+
gl_platform_finish();
}
int gl_flip(const void *fb, int w, int h);
void gl_finish(void);
+/* for external flips */
+extern void *gl_es_display;
+extern void *gl_es_surface;
+
#else
static __inline int gl_init(void *display, void *window, int *quirks)
{
}
+#define gl_es_display (void *)0
+#define gl_es_surface (void *)0
+
#endif
#define GL_QUIRK_ACTIVATE_RECREATE 1