diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-21 21:14:20 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-21 21:14:20 +0100 |
commit | 547f8bc2dcffbdab0244e216ad9aa0c5003877de (patch) | |
tree | a65a3ddc7fd162fd1b2e517ebdc7972b272d0305 /drivers/gles3/storage/material_storage.cpp | |
parent | 7e79aead99a53ee7cdf383add9a6a2aea4f15beb (diff) | |
parent | 94831c7209334ea036dec8edbd235b34453083e2 (diff) |
Merge pull request #72300 from Chaosus/shader_forbid_pass_mv_textures
Forbid passing multiview sampler to the custom function in shaders
Diffstat (limited to 'drivers/gles3/storage/material_storage.cpp')
-rw-r--r-- | drivers/gles3/storage/material_storage.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gles3/storage/material_storage.cpp b/drivers/gles3/storage/material_storage.cpp index 2c530e3ae6..c585895f4b 100644 --- a/drivers/gles3/storage/material_storage.cpp +++ b/drivers/gles3/storage/material_storage.cpp @@ -38,6 +38,7 @@ #include "texture_storage.h" #include "drivers/gles3/rasterizer_canvas_gles3.h" +#include "drivers/gles3/rasterizer_gles3.h" using namespace GLES3; @@ -1721,7 +1722,7 @@ MaterialStorage::MaterialStorage() { actions.default_filter = ShaderLanguage::FILTER_LINEAR_MIPMAP; actions.default_repeat = ShaderLanguage::REPEAT_ENABLE; - actions.check_multiview_samplers = true; + actions.check_multiview_samplers = RasterizerGLES3::get_singleton()->is_xr_enabled(); actions.global_buffer_array_variable = "global_shader_uniforms"; shaders.compiler_scene.initialize(actions); |