From b7ebfa694586b4c0977c8b70795f170e1b4a3a5e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 12 Apr 2013 22:19:37 +0200 Subject: [PATCH] (GL/PS3) Get rid of gl_cg_reinit - no longer needed anymore --- gfx/shader_cg.c | 11 ----------- gfx/shader_cg.h | 4 ---- 2 files changed, 15 deletions(-) diff --git a/gfx/shader_cg.c b/gfx/shader_cg.c index a997cabf35..b019705579 100644 --- a/gfx/shader_cg.c +++ b/gfx/shader_cg.c @@ -389,17 +389,6 @@ static void gl_cg_deinit(void) static bool gl_cg_init(const char *path); -// Deinit as much as possible without resetting context (broken on PS3), -// and reinit cleanly. -// If this fails, we're kinda screwed without resetting everything on PS3. -bool gl_cg_reinit(const char *path) -{ - if (cg_active) - gl_cg_deinit_state(); - - return gl_cg_init(path); -} - #define SET_LISTING(type) \ { \ const char *list = cgGetLastListing(cgCtx); \ diff --git a/gfx/shader_cg.h b/gfx/shader_cg.h index 9f0cdc41ce..1f525fb3e9 100644 --- a/gfx/shader_cg.h +++ b/gfx/shader_cg.h @@ -20,10 +20,6 @@ #include "shader_common.h" #include -bool gl_cg_reinit(const char *path); - -// Used on PS3, but not really platform specific. - #define RARCH_CG_MAX_SHADERS 16 void gl_cg_set_compiler_args(const char **argv);