|
@@ -59,11 +59,9 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
|
|
|
var currentViewport = new THREE.Vector4();
|
|
|
|
|
|
var emptyTexture = gl.createTexture();
|
|
|
- gl.bindTexture(gl.TEXTURE_2D, emptyTexture);
|
|
|
- gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);
|
|
|
- gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGB, 1, 1, 0, gl.RGB, gl.UNSIGNED_BYTE, new Uint8Array([
|
|
|
- 0, 0, 0
|
|
|
- ]));
|
|
|
+ gl.bindTexture( gl.TEXTURE_2D, emptyTexture );
|
|
|
+ gl.texParameteri( gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR );
|
|
|
+ gl.texImage2D( gl.TEXTURE_2D, 0, gl.RGB, 1, 1, 0, gl.RGB, gl.UNSIGNED_BYTE, new Uint8Array( 3 ) );
|
|
|
|
|
|
this.init = function () {
|
|
|
|
|
@@ -181,7 +179,7 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
|
|
|
|
|
|
if ( extensions.get( 'WEBGL_compressed_texture_pvrtc' ) ||
|
|
|
extensions.get( 'WEBGL_compressed_texture_s3tc' ) ||
|
|
|
- extensions.get( 'WEBGL_compressed_texture_etc1' )) {
|
|
|
+ extensions.get( 'WEBGL_compressed_texture_etc1' ) ) {
|
|
|
|
|
|
var formats = gl.getParameter( gl.COMPRESSED_TEXTURE_FORMATS );
|
|
|
|