summaryrefslogtreecommitdiff
path: root/drivers/gles3/storage/texture_storage.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-13 21:07:05 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-13 21:07:05 +0100
commit0668e0f5a9893f0cb46ab4e557a9e79e1e8e335c (patch)
tree33714a9cac7b88ff910253f40ffab487ae6c017c /drivers/gles3/storage/texture_storage.cpp
parentc2e1be66c87a19dff630243c40b27471495f9290 (diff)
parentb4437cbaa6a293f9b92e64f934d17f6798418368 (diff)
Merge pull request #69001 from dzil123/fix_rendering_checks
Fix various missing rendering parameter checks
Diffstat (limited to 'drivers/gles3/storage/texture_storage.cpp')
-rw-r--r--drivers/gles3/storage/texture_storage.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gles3/storage/texture_storage.cpp b/drivers/gles3/storage/texture_storage.cpp
index 9c9c39cc0e..ce66943328 100644
--- a/drivers/gles3/storage/texture_storage.cpp
+++ b/drivers/gles3/storage/texture_storage.cpp
@@ -806,6 +806,7 @@ void TextureStorage::texture_2d_update(RID p_texture, const Ref<Image> &p_image,
texture_set_data(p_texture, p_image, p_layer);
#ifdef TOOLS_ENABLED
Texture *tex = texture_owner.get_or_null(p_texture);
+ ERR_FAIL_COND(!tex);
tex->image_cache_2d.unref();
#endif