GLES: Specify unsigned shift for Adreno bug.

Adreno 320 devices, and at least 1 Intel device, are complaining that
right shift can't be used within uint/int.

Possibly related to:
https://github.com/KhronosGroup/glslang/issues/1296
This commit is contained in:
Unknown W. Brackets committed 2018-06-30 09:50:02 -07:00
1 parent b13c5fbe5d
commit 0b245699bb
1 file changed
+1 -1
+1 -1
View File
@@ -114,7 +114,7 @@ void GenerateDepalShader300(char *buffer, GEBufferFormat pixelFormat, ShaderLang
texturePixels = 512;
if (shift) {
WRITE(p, " index = (int(uint(index) >> %i) & 0x%02x)", shift, mask);
WRITE(p, " index = (int(uint(index) >> uint(%i)) & 0x%02x)", shift, mask);
} else {
WRITE(p, " index = (index & 0x%02x)", mask);
}