add some VideCore/R-pi support code
[libpicofe.git] / gl.h
diff --git a/gl.h b/gl.h
index 9925dac..83b9e41 100644 (file)
--- a/gl.h
+++ b/gl.h
@@ -1,13 +1,23 @@
 #ifdef HAVE_GLES
 
-int gl_init(void *display, void *window);
+int gl_init(void *display, void *window, int *quirks);
 int gl_flip(const void *fb, int w, int h);
 void gl_finish(void);
 
 #else
 
-static __inline int gl_init(void *display, void *window) { return -1; }
-static __inline int gl_flip(const void *fb, int w, int h) { return -1; }
-static __inline void gl_finish(void) {}
+static __inline int gl_init(void *display, void *window, int *quirks)
+{
+  return -1;
+}
+static __inline int gl_flip(const void *fb, int w, int h)
+{
+  return -1;
+}
+static __inline void gl_finish(void)
+{
+}
 
 #endif
+
+#define GL_QUIRK_ACTIVATE_RECREATE 1