diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-10-02 15:23:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-02 15:23:24 +0200 |
commit | 4d693fc3f0287df6cefbc0714fab28b6f825fcb2 (patch) | |
tree | fe036a452559a99cde99c84635cda315cb830d8e /drivers/gles3 | |
parent | 9c93a401b9aadbc34354cc0246b90b7afa98f47c (diff) | |
parent | b8bd5d0354b441194484638b1027df426e0d7679 (diff) |
Merge pull request #22455 from Calinou/reverse-cull-face-update-light
Update lights when their reverse cull face mode is toggled
Diffstat (limited to 'drivers/gles3')
-rw-r--r-- | drivers/gles3/rasterizer_storage_gles3.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp index 797441c3a1..58c0a104c1 100644 --- a/drivers/gles3/rasterizer_storage_gles3.cpp +++ b/drivers/gles3/rasterizer_storage_gles3.cpp @@ -5024,6 +5024,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) { |