mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-09-30 06:06:08 +00:00
Fixing demo falling back to 565 problem on Firefox (and possibly Edge).
This commit is contained in:
@@ -261,7 +261,7 @@ function viewAlpha() { drawMode = 2; redraw(); }
|
||||
Module.onRuntimeInitialized = () => {
|
||||
var gl = elem('canvas').getContext('webgl');
|
||||
// Load the DXT extension, and verify it exists.
|
||||
if (!gl.getExtension('WEBKIT_WEBGL_compressed_texture_s3tc')) {
|
||||
if (!gl.getExtension('WEBKIT_WEBGL_compressed_texture_s3tc') && !gl.getExtension('WEBGL_compressed_texture_s3tc')) {
|
||||
dxtSupported = false;
|
||||
elem('nodxt').style.display = 'block';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user