diff options
Diffstat (limited to 'graphics/java/android/renderscript/Light.java')
-rw-r--r-- | graphics/java/android/renderscript/Light.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/graphics/java/android/renderscript/Light.java b/graphics/java/android/renderscript/Light.java index 115ae03..aab656f 100644 --- a/graphics/java/android/renderscript/Light.java +++ b/graphics/java/android/renderscript/Light.java @@ -30,10 +30,12 @@ public class Light extends BaseObj { } public void setColor(float r, float g, float b) { + mRS.validate(); mRS.nLightSetColor(mID, r, g, b); } public void setPosition(float x, float y, float z) { + mRS.validate(); mRS.nLightSetPosition(mID, x, y, z); } @@ -65,6 +67,7 @@ public class Light extends BaseObj { } public Light create() { + mRS.validate(); return internalCreate(mRS, this); } } |