mirror of
https://github.com/libretro/RetroArch
synced 2025-03-31 19:21:06 +00:00
Hrm ...
This commit is contained in:
parent
99e85684db
commit
5385806e74
5
gfx/gl.c
5
gfx/gl.c
@ -1036,7 +1036,7 @@ static void* gl_init(const video_info_t *video, const input_driver_t **input, vo
|
||||
SDL_ShowCursor(SDL_DISABLE);
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
|
||||
#if (defined(HAVE_XML) || defined(HAVE_CG)) && defined(_WIN32)
|
||||
#if (defined(HAVE_XML) || defined(HAVE_CG)) && defined(_WIN32)
|
||||
// Win32 GL lib doesn't have some functions needed for XML shaders.
|
||||
// Need to load dynamically :(
|
||||
if (!load_gl_proc())
|
||||
@ -1200,7 +1200,6 @@ static bool gl_xml_shader(void *data, const char *path)
|
||||
//if (!gl_check_error())
|
||||
// SSNES_WARN("Error happened before deinit!\n");
|
||||
|
||||
gl_shader_deinit();
|
||||
|
||||
//if (!gl_check_error())
|
||||
// SSNES_WARN("Error happened in deinit!\n");
|
||||
@ -1220,6 +1219,8 @@ static bool gl_xml_shader(void *data, const char *path)
|
||||
}
|
||||
#endif
|
||||
|
||||
gl_shader_deinit();
|
||||
|
||||
//if (!gl_check_error())
|
||||
// SSNES_WARN("Failed to deinit rendering path properly!\n");
|
||||
|
||||
|
@ -246,8 +246,9 @@ void gl_cg_set_params(unsigned width, unsigned height,
|
||||
|
||||
void gl_cg_deinit(void)
|
||||
{
|
||||
if (cg_active)
|
||||
cgDestroyContext(cgCtx);
|
||||
if (!cg_active)
|
||||
return;
|
||||
|
||||
cg_active = false;
|
||||
cg_shader_num = 0;
|
||||
memset(prg, 0, sizeof(prg));
|
||||
@ -262,6 +263,8 @@ void gl_cg_deinit(void)
|
||||
snes_tracker_free(snes_tracker);
|
||||
snes_tracker = NULL;
|
||||
}
|
||||
|
||||
cgDestroyContext(cgCtx);
|
||||
}
|
||||
|
||||
static bool load_plain(const char *path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user