| 1 | #ifdef HAVE_GLES |
| 2 | |
| 3 | int gl_init(void *display, void *window, int *quirks); |
| 4 | int gl_flip(const void *fb, int w, int h); |
| 5 | void gl_finish(void); |
| 6 | |
| 7 | /* for external flips */ |
| 8 | extern void *gl_es_display; |
| 9 | extern void *gl_es_surface; |
| 10 | |
| 11 | #else |
| 12 | |
| 13 | static __inline int gl_init(void *display, void *window, int *quirks) |
| 14 | { |
| 15 | return -1; |
| 16 | } |
| 17 | static __inline int gl_flip(const void *fb, int w, int h) |
| 18 | { |
| 19 | return -1; |
| 20 | } |
| 21 | static __inline void gl_finish(void) |
| 22 | { |
| 23 | } |
| 24 | |
| 25 | #define gl_es_display (void *)0 |
| 26 | #define gl_es_surface (void *)0 |
| 27 | |
| 28 | #endif |
| 29 | |
| 30 | #define GL_QUIRK_ACTIVATE_RECREATE 1 |