Merge pull request #6250 from JonnyH/WIP/fix-ubershader-gles-int-uint-conversion

Fix an invalid (uint < int) comparison in GLES with ubershaders
This commit is contained in:
Stenzek 2017-12-11 11:59:57 +10:00 committed by GitHub
commit 6a4e3cb3d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ void WriteVertexLighting(ShaderCode& out, APIType api_type, const char* world_po
const char* out_color_1_var) const char* out_color_1_var)
{ {
out.Write("// Lighting\n"); 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); api_type == APIType::D3D ? "[loop] " : "", NUM_XF_COLOR_CHANNELS);
out.Write(" uint colorreg = xfmem_color(chan);\n" out.Write(" uint colorreg = xfmem_color(chan);\n"
" uint alphareg = xfmem_alpha(chan);\n" " uint alphareg = xfmem_alpha(chan);\n"