Browse Source

Merge pull request #62251 from RandomShaper/fix_ubershader_signedness_3.5

Rémi Verschelde 3 years ago
parent
commit
fa4c3980c5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/gles3/shader_gles3.cpp

+ 1 - 1
drivers/gles3/shader_gles3.cpp

@@ -194,7 +194,7 @@ bool ShaderGLES3::_bind_ubershader() {
 	// which are more compatible across GL driver vendors.
 	// which are more compatible across GL driver vendors.
 	CRASH_COND(new_conditional_version.version >= 0x80000000);
 	CRASH_COND(new_conditional_version.version >= 0x80000000);
 #endif
 #endif
-	glUniform1ui(conditionals_uniform, new_conditional_version.version);
+	glUniform1i(conditionals_uniform, new_conditional_version.version);
 	return bound;
 	return bound;
 }
 }