diff options
| author | clayjohn <claynjohn@gmail.com> | 2023-06-13 13:20:11 -0700 |
|---|---|---|
| committer | clayjohn <claynjohn@gmail.com> | 2023-06-13 13:20:11 -0700 |
| commit | 0b7e2dfdfc57fac776d4da1c579aa3f1c325c1f0 (patch) | |
| tree | 340414cf639b7f95957410519c49e24fea67229a /servers/rendering/renderer_rd/storage_rd | |
| parent | eb86dabee07e8dfce3b06cbd557b50b74afd3d6c (diff) | |
| download | redot-engine-0b7e2dfdfc57fac776d4da1c579aa3f1c325c1f0.tar.gz | |
Ensure that "detect 3D" is only called when using 3D shaders
Diffstat (limited to 'servers/rendering/renderer_rd/storage_rd')
| -rw-r--r-- | servers/rendering/renderer_rd/storage_rd/material_storage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/renderer_rd/storage_rd/material_storage.cpp b/servers/rendering/renderer_rd/storage_rd/material_storage.cpp index 42db459133..8d1eb87e3c 100644 --- a/servers/rendering/renderer_rd/storage_rd/material_storage.cpp +++ b/servers/rendering/renderer_rd/storage_rd/material_storage.cpp @@ -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)) { |
