mirror of
https://github.com/libretro/RetroArch
synced 2025-02-27 00:40:20 +00:00
Fix GL build - gl_set_nonblock_state and gl_focus use a local
pointer to video data in their wrapper macro functions
This commit is contained in:
parent
7a9293b8c9
commit
60f6727034
9
gfx/gl.c
9
gfx/gl.c
@ -1280,6 +1280,11 @@ static void gl_free(void *data)
|
||||
static void gl_set_nonblock_state(void *data, bool state)
|
||||
{
|
||||
RARCH_LOG("GL VSync => %s\n", state ? "off" : "on");
|
||||
|
||||
gl_t *gl = (gl_t*)data;
|
||||
|
||||
(void)gl;
|
||||
|
||||
context_swap_interval_func(state ? 0 : 1);
|
||||
}
|
||||
|
||||
@ -1596,6 +1601,10 @@ static bool gl_alive(void *data)
|
||||
|
||||
static bool gl_focus(void *data)
|
||||
{
|
||||
gl_t *gl = (gl_t*)data;
|
||||
|
||||
(void)gl;
|
||||
|
||||
return context_has_focus_func();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user