From 4333a68ca0d23eba398a1fc68674988d05ac11dc Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 22 Jan 2019 11:07:26 -0300 Subject: [PATCH] Do not use shadow cubemaps if depth write is not supported to avoid errors, closes #25219 --- drivers/gles2/rasterizer_scene_gles2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gles2/rasterizer_scene_gles2.cpp b/drivers/gles2/rasterizer_scene_gles2.cpp index bd6fe781f03..ce2961170ab 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;