summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorStenzek <stenzek@users.noreply.github.com>2017-12-11 11:59:57 +1000
committerGitHub <noreply@github.com>2017-12-11 11:59:57 +1000
commit6a4e3cb3d609060191992b0fc71e849338ea57d6 (patch)
tree19ca94d6b16193829ba6815fc2b497e4af3439da /Source
parenteb1ae383041ed849ea696e473e8156f3b70dcfa8 (diff)
parente4010047667ff26ade271e6f1a92705cbb6ab365 (diff)
Merge pull request #6250 from JonnyH/WIP/fix-ubershader-gles-int-uint-conversion
Fix an invalid (uint < int) comparison in GLES with ubershaders
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/VideoCommon/UberShaderCommon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/UberShaderCommon.cpp b/Source/Core/VideoCommon/UberShaderCommon.cpp
index 645712fd4f..65299200f8 100644
--- a/Source/Core/VideoCommon/UberShaderCommon.cpp
+++ b/Source/Core/VideoCommon/UberShaderCommon.cpp
@@ -94,7 +94,7 @@ void WriteVertexLighting(ShaderCode& out, APIType api_type, const char* world_po
const char* out_color_1_var)
{
out.Write("// Lighting\n");
- out.Write("%sfor (uint chan = 0u; chan < %zu; chan++) {\n",
+ out.Write("%sfor (uint chan = 0u; chan < %zuu; chan++) {\n",
api_type == APIType::D3D ? "[loop] " : "", NUM_XF_COLOR_CHANNELS);
out.Write(" uint colorreg = xfmem_color(chan);\n"
" uint alphareg = xfmem_alpha(chan);\n"