From 79353f861c4bd1a3c8b187a22e70d02e79956ccc Mon Sep 17 00:00:00 2001 From: Themaister Date: Thu, 10 Nov 2011 00:49:45 +0100 Subject: [PATCH] Do not report dupes. --- gfx/shader_cg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/shader_cg.c b/gfx/shader_cg.c index 44eb4f2dbe..6495b42e31 100644 --- a/gfx/shader_cg.c +++ b/gfx/shader_cg.c @@ -350,7 +350,7 @@ static bool load_plain(const char *path) SSNES_ERR("CG error: %s\n", cgGetErrorString(err)); if (listing_v[i]) SSNES_ERR("Vertex:\n%s\n", listing_v[i]); - if (listing_f[i]) + else if (listing_f[i]) SSNES_ERR("Fragment:\n%s\n", listing_f[i]); goto error; } @@ -878,7 +878,7 @@ static bool load_preset(const char *path) SSNES_ERR("CG error: %s\n", cgGetErrorString(err)); if (listing_v) SSNES_ERR("Vertex:\n%s\n", listing_v); - if (listing_f) + else if (listing_f) SSNES_ERR("Fragment:\n%s\n", listing_f); free(listing_f);