Merge pull request #58855 from akien-mga/3.x-gles2-fix-VersionKey-comparison

This commit is contained in:
Rémi Verschelde 2022-03-07 14:31:43 +01:00 committed by GitHub
commit b6a6c90ea2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ GLint ShaderGLES2::get_uniform_location(int p_index) const {
}
bool ShaderGLES2::bind() {
if (active != this || !version || new_conditional_version.key != conditional_version.key) {
if (active != this || !version || !(new_conditional_version == conditional_version)) {
conditional_version = new_conditional_version;
version = get_current_version();
} else {