Skip to content

Commit

Permalink
Update getTextureDecoding.js
Browse files Browse the repository at this point in the history
  • Loading branch information
vanruesc committed Dec 6, 2021
1 parent 9d383d6 commit 97510a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/getTextureDecoding.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ export function getTextureDecoding(texture, isWebGL2) {

if(texture !== null) {

// Usage of SRGB8_ALPHA8 was introduced in three r133 and disabled in r135.
// Usage of SRGB8_ALPHA8 was introduced in three r133 and disabled temporarily in r135.
const revision = Number.parseInt(REVISION);

// Disable inline decoding for sRGB textures in WebGL 2.
const sRGB8Alpha8 = (
isWebGL2 &&
revision >= 133 && revision < 135 &&
revision >= 133 && revision !== 135 &&
texture.format === RGBAFormat &&
texture.type === UnsignedByteType &&
texture.encoding === sRGBEncoding
Expand Down

0 comments on commit 97510a4

Please sign in to comment.