diff --git a/drivers/gles2/shader_gles2.cpp b/drivers/gles2/shader_gles2.cpp index 31288656dc3..1f7393bf107 100644 --- a/drivers/gles2/shader_gles2.cpp +++ b/drivers/gles2/shader_gles2.cpp @@ -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 {