mirror of
https://github.com/holub/mame
synced 2025-04-24 17:30:55 +03:00
Fix shader compilation error on AMD
This commit is contained in:
parent
222b41d582
commit
5f1c95a450
@ -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;
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user