Fix shader compilation error on AMD

This commit is contained in:
Aaron 2017-12-31 23:35:53 -08:00
parent 222b41d582
commit 5f1c95a450
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ void main()
vec2 pos3 = xy + 2.0*one.xy;
// Finally - take the samples, multiply by weight, and sum
vec4 col = 0.0;
vec4 col = vec4(0.0);
col += TEX2D(vec2(pos0.x, pos0.y)) * w0.x * w0.y;
col += TEX2D(vec2(pos1.x, pos0.y)) * w1.x * w0.y;
col += TEX2D(vec2(pos2.x, pos0.y)) * w2.x * w0.y;

View File

@ -50,7 +50,7 @@ const char glsl_bicubic_rgb32_dir_fsh_src[] =
" vec2 pos3 = xy + 2.0*one.xy;\n"
"\n"
" // Finally - take the samples, multiply by weight, and sum\n"
" vec4 col = 0.0;\n"
" vec4 col = vec4(0.0);\n"
" col += TEX2D(vec2(pos0.x, pos0.y)) * w0.x * w0.y;\n"
" col += TEX2D(vec2(pos1.x, pos0.y)) * w1.x * w0.y;\n"
" col += TEX2D(vec2(pos2.x, pos0.y)) * w2.x * w0.y;\n"