Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/loaders/TextureLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Object.assign( TextureLoader.prototype, {
texture.image = image;

// JPEGs can't have an alpha channel, so memory can be saved by storing them as RGB.
var isJPEG = url.search( /\.(jpg|jpeg)$/ ) > 0 || url.search( /^data\:image\/jpeg/ ) === 0;
var isJPEG = url.search( /\.(?:jpe?g|JPE?G)$/ ) > 0 || url.search( /^data\:image\/jpeg/ ) === 0;

texture.format = isJPEG ? RGBFormat : RGBAFormat;
texture.needsUpdate = true;
Expand Down