Ensure that "detect 3D" is only called when using 3D shaders

This commit is contained in:
clayjohn 2023-06-13 13:20:11 -07:00
parent eb86dabee0
commit 0b7e2dfdfc
3 changed files with 13 additions and 15 deletions

View file

@ -1033,7 +1033,7 @@ bool MaterialStorage::MaterialData::update_parameters_uniform_set(const HashMap<
}
if (p_textures_dirty && tex_uniform_count) {
update_textures(p_parameters, p_default_texture_params, p_texture_uniforms, texture_cache.ptrw(), true);
update_textures(p_parameters, p_default_texture_params, p_texture_uniforms, texture_cache.ptrw(), p_use_linear_color);
}
if (p_ubo_size == 0 && (p_texture_uniforms.size() == 0)) {