mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
(video_thread_wrapper) Call video_driver_get_data instead of
video_driver_get_ptr - last parameter passed to video_driver_get_ptr was hardcoded
This commit is contained in:
parent
76c4f12089
commit
f1330f3c98
@ -1259,7 +1259,8 @@ bool video_thread_font_init(const void **font_driver, void **font_handle,
|
|||||||
bool is_threaded)
|
bool is_threaded)
|
||||||
{
|
{
|
||||||
thread_packet_t pkt;
|
thread_packet_t pkt;
|
||||||
thread_video_t *thr = (thread_video_t*)video_driver_get_ptr(true);
|
thread_video_t *thr = (thread_video_t*)
|
||||||
|
video_driver_get_data();
|
||||||
|
|
||||||
if (!thr)
|
if (!thr)
|
||||||
return false;
|
return false;
|
||||||
@ -1283,7 +1284,7 @@ unsigned video_thread_texture_load(void *data,
|
|||||||
custom_command_method_t func)
|
custom_command_method_t func)
|
||||||
{
|
{
|
||||||
thread_packet_t pkt;
|
thread_packet_t pkt;
|
||||||
thread_video_t *thr = (thread_video_t*)video_driver_get_ptr(true);
|
thread_video_t *thr = (thread_video_t*)video_driver_get_data();
|
||||||
|
|
||||||
if (!thr)
|
if (!thr)
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -435,6 +435,12 @@ void *video_driver_get_ptr(bool force_nonthreaded_data)
|
|||||||
return VIDEO_DRIVER_GET_PTR_INTERNAL(p_rarch, force_nonthreaded_data);
|
return VIDEO_DRIVER_GET_PTR_INTERNAL(p_rarch, force_nonthreaded_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void *video_driver_get_data(void)
|
||||||
|
{
|
||||||
|
struct rarch_state *p_rarch = &rarch_st;
|
||||||
|
return p_rarch->video_driver_data;
|
||||||
|
}
|
||||||
|
|
||||||
static int16_t input_state_wrap(
|
static int16_t input_state_wrap(
|
||||||
input_driver_t *current_input,
|
input_driver_t *current_input,
|
||||||
void *data,
|
void *data,
|
||||||
|
@ -1585,6 +1585,8 @@ const char* config_get_video_driver_options(void);
|
|||||||
**/
|
**/
|
||||||
void *video_driver_get_ptr(bool force_nonthreaded_data);
|
void *video_driver_get_ptr(bool force_nonthreaded_data);
|
||||||
|
|
||||||
|
void *video_driver_get_data(void);
|
||||||
|
|
||||||
bool video_driver_set_rotation(unsigned rotation);
|
bool video_driver_set_rotation(unsigned rotation);
|
||||||
|
|
||||||
bool video_driver_set_video_mode(unsigned width,
|
bool video_driver_set_video_mode(unsigned width,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user