glsl: avoid an unset warning

This commit is contained in:
Gregory Hainaut 2016-06-09 10:06:11 +02:00
parent df45c99f96
commit 8c4d8cfdca
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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"