Fixing demo falling back to 565 problem on Firefox (and possibly Edge).

This commit is contained in:
richgel999
2019-05-23 19:47:23 -07:00
parent 3bfe6d59c1
commit 92bc0de0ea

View File

@@ -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';
}