From b8bd5d0354b441194484638b1027df426e0d7679 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 26 Sep 2018 21:49:24 +0200 Subject: Update lights when their reverse cull face mode is toggled --- drivers/gles3/rasterizer_storage_gles3.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/gles3') diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp index 25e7bd0424..ef14a4732d 100644 --- a/drivers/gles3/rasterizer_storage_gles3.cpp +++ b/drivers/gles3/rasterizer_storage_gles3.cpp @@ -5014,6 +5014,9 @@ void RasterizerStorageGLES3::light_set_reverse_cull_face_mode(RID p_light, bool ERR_FAIL_COND(!light); light->reverse_cull = p_enabled; + + light->version++; + light->instance_change_notify(); } void RasterizerStorageGLES3::light_omni_set_shadow_mode(RID p_light, VS::LightOmniShadowMode p_mode) { -- cgit v1.2.3