mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +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 "../font_renderer_driver.h"
|
||||||
#include "../../content.h"
|
#include "../../content.h"
|
||||||
#include "../../runloop.h"
|
#include "../../runloop.h"
|
||||||
|
#include "../../verbosity.h"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
@ -54,11 +54,8 @@ static bool shader_null_set_mvp(void *data, const math_matrix_4x4 *mat)
|
|||||||
{
|
{
|
||||||
#ifdef HAVE_OPENGL
|
#ifdef HAVE_OPENGL
|
||||||
#ifndef NO_GL_FF_MATRIX
|
#ifndef NO_GL_FF_MATRIX
|
||||||
gl_t *gl = (gl_t*)video_driver_get_ptr(false);
|
if (!strcmp(video_driver_get_ident(), "gl"))
|
||||||
if (gl)
|
|
||||||
{
|
|
||||||
gl_ff_matrix(mat);
|
gl_ff_matrix(mat);
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
return false;
|
return false;
|
||||||
@ -68,8 +65,7 @@ static bool shader_null_set_coords(const void *data)
|
|||||||
{
|
{
|
||||||
#ifdef HAVE_OPENGL
|
#ifdef HAVE_OPENGL
|
||||||
#ifndef NO_GL_FF_VERTEX
|
#ifndef NO_GL_FF_VERTEX
|
||||||
gl_t *gl = (gl_t*)video_driver_get_ptr(false);
|
if (!strcmp(video_driver_get_ident(), "gl"))
|
||||||
if (gl)
|
|
||||||
{
|
{
|
||||||
const struct gfx_coords *coords = (const struct gfx_coords*)data;
|
const struct gfx_coords *coords = (const struct gfx_coords*)data;
|
||||||
gl_ff_vertex(coords);
|
gl_ff_vertex(coords);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user