mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-22 11:04:35 +00:00
Fix FBO in thread_wrapper.
This commit is contained in:
parent
441d4a0698
commit
1ea2a45441
@ -43,8 +43,10 @@ enum thread_cmd
|
||||
|
||||
CMD_POKE_SET_BLEND,
|
||||
CMD_POKE_SET_FILTERING,
|
||||
#ifdef HAVE_FBO
|
||||
CMD_POKE_SET_FBO_STATE,
|
||||
CMD_POKE_GET_FBO_STATE,
|
||||
#endif
|
||||
CMD_POKE_SET_ASPECT_RATIO,
|
||||
|
||||
CMD_DUMMY = INT_MAX
|
||||
@ -278,6 +280,7 @@ static void thread_loop(void *data)
|
||||
thread_reply(thr, CMD_POKE_SET_FILTERING);
|
||||
break;
|
||||
|
||||
#ifdef HAVE_FBO
|
||||
case CMD_POKE_SET_FBO_STATE:
|
||||
thr->poke->set_fbo_state(thr->driver_data,
|
||||
thr->cmd_data.i);
|
||||
@ -288,6 +291,7 @@ static void thread_loop(void *data)
|
||||
thr->cmd_data.i = thr->poke->get_fbo_state(thr->driver_data);
|
||||
thread_reply(thr, CMD_POKE_GET_FBO_STATE);
|
||||
break;
|
||||
#endif
|
||||
|
||||
case CMD_POKE_SET_ASPECT_RATIO:
|
||||
thr->poke->set_aspect_ratio(thr->driver_data,
|
||||
@ -623,6 +627,7 @@ static void thread_set_filtering(void *data, unsigned index, bool smooth)
|
||||
thread_wait_reply(thr, CMD_POKE_SET_FILTERING);
|
||||
}
|
||||
|
||||
#ifdef HAVE_FBO
|
||||
static void thread_set_fbo_state(void *data, unsigned state)
|
||||
{
|
||||
thread_video_t *thr = (thread_video_t*)data;
|
||||
@ -638,6 +643,7 @@ static unsigned thread_get_fbo_state(void *data)
|
||||
thread_wait_reply(thr, CMD_POKE_GET_FBO_STATE);
|
||||
return thr->cmd_data.i;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void thread_set_aspect_ratio(void *data, unsigned aspectratio_index)
|
||||
{
|
||||
@ -669,8 +675,10 @@ static void thread_apply_state_changes(void *data)
|
||||
static const video_poke_interface_t thread_poke = {
|
||||
thread_set_blend,
|
||||
thread_set_filtering,
|
||||
#ifdef HAVE_FBO
|
||||
thread_set_fbo_state,
|
||||
thread_get_fbo_state,
|
||||
#endif
|
||||
thread_set_aspect_ratio,
|
||||
thread_apply_state_changes,
|
||||
#ifdef HAVE_RGUI
|
||||
|
Loading…
x
Reference in New Issue
Block a user