summaryrefslogtreecommitdiff
path: root/servers/visual/rasterizer_rd/rasterizer_storage_rd.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2019-09-25 16:44:44 -0300
committerJuan Linietsky <reduzio@gmail.com>2020-02-11 12:02:34 +0100
commit263bebe0237b85b1343ba17b117c8c43287ecc57 (patch)
treeca2d803d0e1e3ec664bb0988d6a7896f6f55e8b2 /servers/visual/rasterizer_rd/rasterizer_storage_rd.h
parentf55332ffad4622b3da5d6ebcd0806d3ce37465f1 (diff)
Untested support for compute shaders
Diffstat (limited to 'servers/visual/rasterizer_rd/rasterizer_storage_rd.h')
-rw-r--r--servers/visual/rasterizer_rd/rasterizer_storage_rd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/visual/rasterizer_rd/rasterizer_storage_rd.h b/servers/visual/rasterizer_rd/rasterizer_storage_rd.h
index 397e3c1b95..6cdc21c2f0 100644
--- a/servers/visual/rasterizer_rd/rasterizer_storage_rd.h
+++ b/servers/visual/rasterizer_rd/rasterizer_storage_rd.h
@@ -778,6 +778,8 @@ public:
_FORCE_INLINE_ RID skeleton_get_3d_uniform_set(RID p_skeleton, RID p_shader, uint32_t p_set) const {
Skeleton *skeleton = skeleton_owner.getornull(p_skeleton);
+ ERR_FAIL_COND_V(!skeleton, RID());
+ ERR_FAIL_COND_V(skeleton->size == 0, RID());
if (skeleton->use_2d) {
return RID();
}