diff options
Diffstat (limited to 'js/lib/rdge/materials/pulse-material.js')
-rw-r--r-- | js/lib/rdge/materials/pulse-material.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/lib/rdge/materials/pulse-material.js b/js/lib/rdge/materials/pulse-material.js index 0a7a5dd8..9cb500c8 100644 --- a/js/lib/rdge/materials/pulse-material.js +++ b/js/lib/rdge/materials/pulse-material.js | |||
@@ -139,7 +139,7 @@ var PulseMaterial = function PulseMaterial() | |||
139 | if (this._glTex) | 139 | if (this._glTex) |
140 | { | 140 | { |
141 | if (this._glTex.isAnimated()) | 141 | if (this._glTex.isAnimated()) |
142 | this._glTex.rerender(); | 142 | this._glTex.render(); |
143 | tex = this._glTex.getTexture(); | 143 | tex = this._glTex.getTexture(); |
144 | } | 144 | } |
145 | 145 | ||
@@ -157,7 +157,7 @@ var PulseMaterial = function PulseMaterial() | |||
157 | { | 157 | { |
158 | if (!this._glTex.isAnimated()) | 158 | if (!this._glTex.isAnimated()) |
159 | { | 159 | { |
160 | this._glTex.rerender(); | 160 | this._glTex.render(); |
161 | this.updateTexture(); | 161 | this.updateTexture(); |
162 | } | 162 | } |
163 | } | 163 | } |
@@ -177,7 +177,7 @@ var PulseMaterial = function PulseMaterial() | |||
177 | { | 177 | { |
178 | //this.updateTexture(); | 178 | //this.updateTexture(); |
179 | if (this._glTex.isAnimated()) | 179 | if (this._glTex.isAnimated()) |
180 | this._glTex.rerender(); | 180 | this._glTex.render(); |
181 | tex = this._glTex.getTexture(); | 181 | tex = this._glTex.getTexture(); |
182 | if (tex) | 182 | if (tex) |
183 | technique.u_tex0.set( tex ); | 183 | technique.u_tex0.set( tex ); |