diff --git a/plugins/GSdx/res/glsl/tfx_fs.glsl b/plugins/GSdx/res/glsl/tfx_fs.glsl index cd290bfe2c..6fe698249b 100644 --- a/plugins/GSdx/res/glsl/tfx_fs.glsl +++ b/plugins/GSdx/res/glsl/tfx_fs.glsl @@ -237,7 +237,7 @@ vec4 sample_depth(vec2 st) vec2 uv_f = vec2(clamp_wrap_uv_depth(ivec2(st))) * vec2(ScalingFactor.xy) * vec2(1.0f/16.0f); ivec2 uv = ivec2(uv_f); - vec4 t; + vec4 t = vec4(0.0f); #if PS_TALES_OF_ABYSS_HLE == 1 // Warning: UV can't be used in channel effect int depth = fetch_raw_depth(); diff --git a/plugins/GSdx/res/glsl_source.h b/plugins/GSdx/res/glsl_source.h index c3beda937d..05f32c5cdb 100644 --- a/plugins/GSdx/res/glsl_source.h +++ b/plugins/GSdx/res/glsl_source.h @@ -1080,7 +1080,7 @@ static const char* const tfx_fs_all_glsl = " vec2 uv_f = vec2(clamp_wrap_uv_depth(ivec2(st))) * vec2(ScalingFactor.xy) * vec2(1.0f/16.0f);\n" " ivec2 uv = ivec2(uv_f);\n" "\n" - " vec4 t;\n" + " vec4 t = vec4(0.0f);\n" "#if PS_TALES_OF_ABYSS_HLE == 1\n" " // Warning: UV can't be used in channel effect\n" " int depth = fetch_raw_depth();\n"