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:
twinaphex 2012-12-26 09:32:15 +01:00
parent 7a9293b8c9
commit 60f6727034

View File

@ -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();
}