aboutsummaryrefslogtreecommitdiff
path: root/src/library_gl.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library_gl.js')
-rw-r--r--src/library_gl.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/library_gl.js b/src/library_gl.js
index 7f30961a..8a24031f 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -1174,8 +1174,10 @@ var LibraryGL = {
index = parseInt(renderer[i+1])
size = parseInt(renderer[i+2]);
i++;
- textureSize = size;
- textureOffset = vertexSize;
+ if (index == 0) { // TODO: support other textures
+ textureSize = size;
+ textureOffset = vertexSize;
+ }
} else {
throw 'Cannot create shader rendederer for ' + renderer + ' because of ' + which;
}