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 2018-06-30 09:41:12 -07:00
parent b13c5fbe5d
commit 0b245699bb

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);
}