summaryrefslogtreecommitdiffstats
path: root/scene/resources
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-10-10 18:31:01 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-10-10 18:31:01 -0300
commit1527cf8c0d17891dd0ebf99d484f83daa46eba3c (patch)
treea9a0fc5a00f8f57a973f2861d051b76f99642114 /scene/resources
parent850eaf7ed796d2f2d9a35c6bc4ba9a4e69f5ca1d (diff)
downloadredot-engine-1527cf8c0d17891dd0ebf99d484f83daa46eba3c.tar.gz
2D Shaders are working again using the new syntax, though all is buggy in general
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/material.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/resources/material.h b/scene/resources/material.h
index 87afa60ce9..1acc031641 100644
--- a/scene/resources/material.h
+++ b/scene/resources/material.h
@@ -46,6 +46,9 @@ class Material : public Resource {
OBJ_SAVE_TYPE( Material );
RID material;
+protected:
+
+ _FORCE_INLINE_ RID _get_material() const { return material; }
public:
virtual RID get_rid() const;