mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
[LIBNX] Fix Switch video driver with enabled GL build
This commit is contained in:
parent
624ffc98c1
commit
a8555a76c5
@ -186,6 +186,18 @@ static void *switch_init(const video_info_t *video,
|
|||||||
*input_data = switchinput;
|
*input_data = switchinput;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBNX
|
||||||
|
#ifdef HAVE_OPENGL
|
||||||
|
// Init Resolution before initDefault
|
||||||
|
gfxInitResolution(1280, 720);
|
||||||
|
|
||||||
|
gfxInitDefault();
|
||||||
|
gfxSetMode(GfxMode_TiledDouble);
|
||||||
|
|
||||||
|
gfxConfigureTransform(0);
|
||||||
|
#endif // HAVE_OPENGL
|
||||||
|
#endif
|
||||||
|
|
||||||
font_driver_init_osd(sw, false,
|
font_driver_init_osd(sw, false,
|
||||||
video->is_threaded,
|
video->is_threaded,
|
||||||
FONT_DRIVER_RENDER_SWITCH);
|
FONT_DRIVER_RENDER_SWITCH);
|
||||||
@ -512,6 +524,12 @@ static void switch_free(void *data)
|
|||||||
free(sw->menu_texture.pixels);
|
free(sw->menu_texture.pixels);
|
||||||
|
|
||||||
free(sw);
|
free(sw);
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBNX
|
||||||
|
#ifdef HAVE_OPENGL
|
||||||
|
gfxExit();
|
||||||
|
#endif // HAVE_OPENGL
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool switch_set_shader(void *data,
|
static bool switch_set_shader(void *data,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user