Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Add etc1 support #18

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 2 additions & 1 deletion src/CompressedTextureManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ CompressedTextureManager.prototype.onContextChange = function() {
dxt: getExtension(gl, "WEBGL_compressed_texture_s3tc"),
pvrtc: getExtension(gl, "WEBGL_compressed_texture_pvrtc"),
astc: getExtension(gl, "WEBGL_compressed_texture_astc"),
atc: getExtension(gl, "WEBGL_compressed_texture_atc")
atc: getExtension(gl, "WEBGL_compressed_texture_atc"),
etc1: getExtension(gl, "WEBGL_compressed_texture_etc1")
};
// CRN exists only with DXT!
this.extensions.crn = this.extensions.dxt;
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ var plugin = {
if (data.pvrtc) extensions.push('.pvr');
if (data.atc) extensions.push('.atc');
if (data.astc) extensions.push('.astc');
if (data.etc1) extensions.push('.etc1');
} else if (renderer instanceof PIXI.CanvasRenderer) {
//nothing special for canvas
}
Expand Down