Skip to content

Commit

Permalink
Updated builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed May 21, 2022
1 parent 3300a62 commit 1a4c315
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build/three.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -17058,7 +17058,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils,
let mipmap;
const mipmaps = texture.mipmaps;
const useTexStorage = isWebGL2 && texture.isVideoTexture !== true;
const allocateMemory = textureProperties.__version === undefined || forceUpload === true;
const allocateMemory = source.__currentVersion === undefined || forceUpload === true;
const levels = getMipLevels(texture, image, supportsMips);

if (texture.isDepthTexture) {
Expand Down Expand Up @@ -17288,7 +17288,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils,
glType = utils.convert(texture.type),
glInternalFormat = getInternalFormat(texture.internalFormat, glFormat, glType, texture.encoding);
const useTexStorage = isWebGL2 && texture.isVideoTexture !== true;
const allocateMemory = textureProperties.__version === undefined;
const allocateMemory = source.__currentVersion === undefined || forceUpload === true;
let levels = getMipLevels(texture, image, supportsMips);
setTextureParameters(_gl.TEXTURE_CUBE_MAP, texture, supportsMips);
let mipmaps;
Expand Down
4 changes: 2 additions & 2 deletions build/three.js
Original file line number Diff line number Diff line change
Expand Up @@ -17060,7 +17060,7 @@
let mipmap;
const mipmaps = texture.mipmaps;
const useTexStorage = isWebGL2 && texture.isVideoTexture !== true;
const allocateMemory = textureProperties.__version === undefined || forceUpload === true;
const allocateMemory = source.__currentVersion === undefined || forceUpload === true;
const levels = getMipLevels(texture, image, supportsMips);

if (texture.isDepthTexture) {
Expand Down Expand Up @@ -17290,7 +17290,7 @@
glType = utils.convert(texture.type),
glInternalFormat = getInternalFormat(texture.internalFormat, glFormat, glType, texture.encoding);
const useTexStorage = isWebGL2 && texture.isVideoTexture !== true;
const allocateMemory = textureProperties.__version === undefined;
const allocateMemory = source.__currentVersion === undefined || forceUpload === true;
let levels = getMipLevels(texture, image, supportsMips);
setTextureParameters(_gl.TEXTURE_CUBE_MAP, texture, supportsMips);
let mipmaps;
Expand Down
2 changes: 1 addition & 1 deletion build/three.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build/three.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -23032,7 +23032,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
const mipmaps = texture.mipmaps;

const useTexStorage = ( isWebGL2 && texture.isVideoTexture !== true );
const allocateMemory = ( textureProperties.__version === undefined ) || ( forceUpload === true );
const allocateMemory = ( source.__currentVersion === undefined ) || ( forceUpload === true );
const levels = getMipLevels( texture, image, supportsMips );

if ( texture.isDepthTexture ) {
Expand Down Expand Up @@ -23403,7 +23403,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
glInternalFormat = getInternalFormat( texture.internalFormat, glFormat, glType, texture.encoding );

const useTexStorage = ( isWebGL2 && texture.isVideoTexture !== true );
const allocateMemory = ( textureProperties.__version === undefined );
const allocateMemory = ( source.__currentVersion === undefined ) || ( forceUpload === true );
let levels = getMipLevels( texture, image, supportsMips );

setTextureParameters( 34067, texture, supportsMips );
Expand Down

0 comments on commit 1a4c315

Please sign in to comment.