summaryrefslogtreecommitdiff
path: root/drivers/gles3/storage
diff options
context:
space:
mode:
authorTobias Widner <kidinashell@protonmail.com>2022-09-18 20:12:25 +0200
committerTobias Widner <kidinashell@protonmail.com>2022-09-19 17:18:45 +0200
commit422bacbfd1ef99e6d9a2b7a9953d0fcb159ae1cd (patch)
treeadfcf91c903859b2f81242e81b9245498719b271 /drivers/gles3/storage
parent57bdddce02370af3d13e6edc583afdc17264147d (diff)
Fix Vulkan: SpotLight3D's and OmniLight3D's Projector doesn't work
Diffstat (limited to 'drivers/gles3/storage')
-rw-r--r--drivers/gles3/storage/light_storage.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gles3/storage/light_storage.h b/drivers/gles3/storage/light_storage.h
index f054f0fdc6..8b708116ac 100644
--- a/drivers/gles3/storage/light_storage.h
+++ b/drivers/gles3/storage/light_storage.h
@@ -36,6 +36,7 @@
#include "core/templates/local_vector.h"
#include "core/templates/rid_owner.h"
#include "core/templates/self_list.h"
+#include "drivers/gles3/storage/texture_storage.h"
#include "servers/rendering/renderer_compositor.h"
#include "servers/rendering/storage/light_storage.h"
#include "servers/rendering/storage/utilities.h"
@@ -246,7 +247,7 @@ public:
const Light *light = light_owner.get_or_null(p_light);
ERR_FAIL_COND_V(!light, RS::LIGHT_DIRECTIONAL);
- return light_owner.owns(light->projector);
+ return TextureStorage::get_singleton()->owns_texture(light->projector);
}
_FORCE_INLINE_ bool light_is_negative(RID p_light) const {