mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Simplify video_driver_set_mvp
This commit is contained in:
parent
b7cee0a633
commit
1dd89e1bce
@ -4087,6 +4087,11 @@ static float gl_get_refresh_rate(void *data)
|
||||
static void gl_set_mvp(void *data, void *shader_data,
|
||||
const void *mat_data)
|
||||
{
|
||||
gl_t *gl = (gl_t*)data;
|
||||
|
||||
if (gl->shader && gl->shader->set_mvp)
|
||||
gl->shader->set_mvp(gl, gl->shader_data,
|
||||
mat_data);
|
||||
}
|
||||
|
||||
static uint32_t gl_get_flags(void *data)
|
||||
|
@ -3614,15 +3614,9 @@ void video_driver_set_mvp(video_shader_ctx_mvp_t *mvp)
|
||||
if (!mvp || !mvp->matrix)
|
||||
return;
|
||||
|
||||
if (current_shader && current_shader->set_mvp)
|
||||
current_shader->set_mvp(mvp->data,
|
||||
if (video_driver_poke && video_driver_poke->set_mvp)
|
||||
video_driver_poke->set_mvp(mvp->data,
|
||||
current_shader_data, mvp->matrix);
|
||||
else
|
||||
{
|
||||
if (video_driver_poke && video_driver_poke->set_mvp)
|
||||
video_driver_poke->set_mvp(mvp->data,
|
||||
current_shader_data, mvp->matrix);
|
||||
}
|
||||
}
|
||||
|
||||
float video_driver_get_refresh_rate(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user