diff options
| author | jules <jules@okfoc.us> | 2013-12-17 10:06:37 -0500 |
|---|---|---|
| committer | jules <jules@okfoc.us> | 2013-12-17 10:06:37 -0500 |
| commit | f4eee2184b439c4e60edd3215441a212bf2bae58 (patch) | |
| tree | 67f89e36bb67556d9324a169893f3d5c09d65759 /shader-gif.html | |
| parent | 3ed9546b8671c277011085c649986d48208a8a35 (diff) | |
weird ish when loading gif still
Diffstat (limited to 'shader-gif.html')
| -rw-r--r-- | shader-gif.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/shader-gif.html b/shader-gif.html index 9f7e398..59d2add 100644 --- a/shader-gif.html +++ b/shader-gif.html @@ -189,7 +189,12 @@ function draw(t) { var frame, img_frame; function giveFrame(t){ if (window.gif) { - return gif.frames[gif.currentFrame(t)] + if (gif.currentFrame) { + return gif.frames[gif.currentFrame(t)] + } + else { + return gif.frames[0] + } } else if (window.img) { return img_frame |
