From fb7c526ec4bdb9e9b0946092ef78efc5c8452968 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Thu, 24 Jan 2019 17:51:10 -0300 Subject: [PATCH] Fix crash with cube shadows in gles2, closes #22635 --- 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 ce2961170ab..47a4f8bc27a 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 + 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;