diff options
Diffstat (limited to 'src/webGLClient.js')
-rw-r--r-- | src/webGLClient.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webGLClient.js b/src/webGLClient.js index 335c836c..02e5793f 100644 --- a/src/webGLClient.js +++ b/src/webGLClient.js @@ -102,7 +102,7 @@ WebGLClient.prefetch = function() { var ctx = canvas.getContext('webgl-experimental') || canvas.getContext('webgl'); if (!ctx) return; var parameters = {}; - ['MAX_VERTEX_ATTRIBS', 'MAX_TEXTURE_IMAGE_UNITS', 'MAX_TEXTURE_SIZE', 'VENDOR', 'RENDERER', 'VERSION'].forEach(function(name) { + ['MAX_VERTEX_ATTRIBS', 'MAX_TEXTURE_IMAGE_UNITS', 'MAX_TEXTURE_SIZE', 'MAX_CUBE_MAP_TEXTURE_SIZE', 'VENDOR', 'RENDERER', 'VERSION'].forEach(function(name) { parameters[ctx[name]] = ctx.getParameter(ctx[name]); }); worker.postMessage({ target: 'gl', op: 'setPrefetched', parameters: parameters, extensions: ctx.getSupportedExtensions() }); |