summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2019-01-22 11:07:26 -0300
committerJuan Linietsky <reduzio@gmail.com>2019-01-22 11:07:26 -0300
commit4333a68ca0d23eba398a1fc68674988d05ac11dc (patch)
tree642e64f57bc31202fa7540f39a9123740a8fa6de
parente081cec69f9719e0d481c077751ea7049b0eaacd (diff)
Do not use shadow cubemaps if depth write is not supported to avoid errors, closes #25219
-rw-r--r--drivers/gles2/rasterizer_scene_gles2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles2/rasterizer_scene_gles2.cpp b/drivers/gles2/rasterizer_scene_gles2.cpp
index bd6fe781f0..ce2961170a 100644
--- a/drivers/gles2/rasterizer_scene_gles2.cpp
+++ b/drivers/gles2/rasterizer_scene_gles2.cpp
@@ -3135,7 +3135,7 @@ void RasterizerSceneGLES2::initialize() {
}
// cubemaps for shadows
- {
+ if (!storage->config.support_write_depth) { //not going to be used
int max_shadow_cubemap_sampler_size = 512;
int cube_size = max_shadow_cubemap_sampler_size;