diff options
Diffstat (limited to 'src/webGLWorker.js')
-rw-r--r-- | src/webGLWorker.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js index 9923d02e..64892714 100644 --- a/src/webGLWorker.js +++ b/src/webGLWorker.js @@ -746,8 +746,8 @@ function WebGLWorker() { commandBuffer.push('texParameteri', 3, target, pname, param); }; this.texImage2D = function(target, level, internalformat, width, height, border, format, type, pixels) { - assert(pixels); // we do not support the overloads that have fewer params - commandBuffer.push('texImage2D', 9, target, level, internalformat, width, height, border, format, type, new pixels.constructor(pixels)); + assert(pixels || pixels === null); // we do not support the overloads that have fewer params + commandBuffer.push('texImage2D', 9, target, level, internalformat, width, height, border, format, type, pixels ? new pixels.constructor(pixels) : pixels); }; this.compressedTexImage2D = function(target, level, internalformat, width, height, border, pixels) { commandBuffer.push('compressedTexImage2D', 7, target, level, internalformat, width, height, border, new pixels.constructor(pixels)); |