Permalink
Browse files

GLES: Fix direct shader depal on GLES.

Was missing a cast and only worked on some desktop before.
  • Loading branch information...
unknownbrackets committed Aug 18, 2018
1 parent 8a154da commit cd98c4a266d5ea5f7dcd37dea62a5d44c791c0bf
Showing with 1 addition and 1 deletion.
  1. +1 −1 GPU/GLES/FragmentShaderGeneratorGLES.cpp
@@ -359,7 +359,7 @@ bool GenerateFragmentShader(const FShaderID &id, char *buffer, uint64_t *uniform
} else {
WRITE(p, " vec2 uv = %s.xy;\n vec2 uv_round;\n", texcoord);
}
WRITE(p, " vec2 tsize = textureSize(tex, 0);\n");
WRITE(p, " vec2 tsize = vec2(textureSize(tex, 0));\n");
WRITE(p, " vec2 fraction;\n");
WRITE(p, " bool bilinear = (u_depal >> 31) != 0;\n");
WRITE(p, " if (bilinear) {\n");

0 comments on commit cd98c4a

Please sign in to comment.