mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 08:37:41 +00:00
Don't use video_driver_get_ptr inside shader_null
This commit is contained in:
parent
efb1d741f9
commit
8030f91667
@ -33,6 +33,7 @@
|
||||
#include "../font_renderer_driver.h"
|
||||
#include "../../content.h"
|
||||
#include "../../runloop.h"
|
||||
#include "../../verbosity.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
@ -54,11 +54,8 @@ static bool shader_null_set_mvp(void *data, const math_matrix_4x4 *mat)
|
||||
{
|
||||
#ifdef HAVE_OPENGL
|
||||
#ifndef NO_GL_FF_MATRIX
|
||||
gl_t *gl = (gl_t*)video_driver_get_ptr(false);
|
||||
if (gl)
|
||||
{
|
||||
if (!strcmp(video_driver_get_ident(), "gl"))
|
||||
gl_ff_matrix(mat);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
return false;
|
||||
@ -68,8 +65,7 @@ static bool shader_null_set_coords(const void *data)
|
||||
{
|
||||
#ifdef HAVE_OPENGL
|
||||
#ifndef NO_GL_FF_VERTEX
|
||||
gl_t *gl = (gl_t*)video_driver_get_ptr(false);
|
||||
if (gl)
|
||||
if (!strcmp(video_driver_get_ident(), "gl"))
|
||||
{
|
||||
const struct gfx_coords *coords = (const struct gfx_coords*)data;
|
||||
gl_ff_vertex(coords);
|
||||
|
Loading…
x
Reference in New Issue
Block a user