Skip to content

Commit

Permalink
Merge pull request #58855 from akien-mga/3.x-gles2-fix-VersionKey-com…
Browse files Browse the repository at this point in the history
…parison
  • Loading branch information
akien-mga authored Mar 7, 2022
2 parents 2dec5db + 76df26b commit b6a6c90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gles2/shader_gles2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b6a6c90

Please sign in to comment.