From a19d1e9776456e8c803e5cc632196869d652de3e Mon Sep 17 00:00:00 2001 From: Themaister Date: Sat, 6 Apr 2013 00:21:57 +0200 Subject: [PATCH] Don't set prg[2] with load_plain(). --- gfx/shader_cg.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gfx/shader_cg.c b/gfx/shader_cg.c index 6a4b3471c4..6a220ab11d 100644 --- a/gfx/shader_cg.c +++ b/gfx/shader_cg.c @@ -487,17 +487,15 @@ static bool load_plain(const char *path) if (!load_program(1, path, true)) return false; - - prg[2] = prg[0]; - cg_shader_num = 1; } else { RARCH_LOG("Loading stock Cg file.\n"); - prg[2] = prg[1] = prg[0]; + prg[1] = prg[0]; cg_shader_num = 1; } + cg_shader_num = 1; return true; }