make gl layer reinitializable

This commit is contained in:
kub 2022-09-16 17:07:14 +00:00
parent e3ea3015f0
commit c722861112
3 changed files with 27 additions and 15 deletions

4
gl.h
View file

@ -3,7 +3,7 @@
#ifdef HAVE_GLES
int gl_init(void *display, void *window, int *quirks);
int gl_init(void *display, void *window, int *quirks, int w, int h);
void gl_announce(void);
int gl_flip(const void *fb, int w, int h);
void gl_finish(void);
@ -14,7 +14,7 @@ extern void *gl_es_surface;
#else
static __inline int gl_init(void *display, void *window, int *quirks)
static __inline int gl_init(void *display, void *window, int *quirks, int w, int h)
{
return -1;
}