diff options
author | Juan Linietsky <reduzio@gmail.com> | 2019-01-22 11:07:26 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2019-01-22 11:07:26 -0300 |
commit | 4333a68ca0d23eba398a1fc68674988d05ac11dc (patch) | |
tree | 642e64f57bc31202fa7540f39a9123740a8fa6de | |
parent | e081cec69f9719e0d481c077751ea7049b0eaacd (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.cpp | 2 |
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; |