mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-06 23:28:04 -04:00
gl: make surface and context readable by users
used by PCSX gles plugin
This commit is contained in:
parent
e288d77607
commit
6fd09356f0
2 changed files with 16 additions and 0 deletions
7
gl.h
7
gl.h
|
@ -4,6 +4,10 @@ int gl_init(void *display, void *window, int *quirks);
|
|||
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)
|
||||
|
@ -18,6 +22,9 @@ static __inline void gl_finish(void)
|
|||
{
|
||||
}
|
||||
|
||||
#define gl_es_display (void *)0
|
||||
#define gl_es_surface (void *)0
|
||||
|
||||
#endif
|
||||
|
||||
#define GL_QUIRK_ACTIVATE_RECREATE 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue