From 7b1cbe9874bbefbe70e338fcded18cbf56cccc2b Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 21 Dec 2018 10:02:43 -0300 Subject: [PATCH] Reverse RGBA shadow test on GLES2 --- drivers/gles2/rasterizer_storage_gles2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gles2/rasterizer_storage_gles2.cpp b/drivers/gles2/rasterizer_storage_gles2.cpp index 4684ef84568..58258851241 100644 --- a/drivers/gles2/rasterizer_storage_gles2.cpp +++ b/drivers/gles2/rasterizer_storage_gles2.cpp @@ -4644,7 +4644,7 @@ void RasterizerStorageGLES2::initialize() { #ifdef GLES_OVER_GL config.use_rgba_2d_shadows = false; #else - config.use_rgba_2d_shadows = config.float_texture_supported && config.extensions.has("GL_EXT_texture_rg"); + config.use_rgba_2d_shadows = !(config.float_texture_supported && config.extensions.has("GL_EXT_texture_rg")); #endif frame.count = 0; frame.delta = 0;