From 263bebe0237b85b1343ba17b117c8c43287ecc57 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 25 Sep 2019 16:44:44 -0300 Subject: Untested support for compute shaders --- servers/visual/rasterizer_rd/rasterizer_storage_rd.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'servers/visual/rasterizer_rd/rasterizer_storage_rd.h') 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(); } -- cgit v1.2.3