diff --git a/data/emulator.js b/data/emulator.js index 3e9f97dc..5e5578dc 100644 --- a/data/emulator.js +++ b/data/emulator.js @@ -306,7 +306,7 @@ class EmulatorJS { this.bindListeners(); this.config.netplayUrl = this.config.netplayUrl || "https://netplay.emulatorjs.org"; this.fullscreen = false; - this.supportsWebgl2 = !!document.createElement('canvas').getContext('webgl2'); + this.supportsWebgl2 = !!document.createElement('canvas').getContext('webgl2') && (this.config.forceLegacyCores !== true); this.isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent); if (this.config.disableDatabases) { this.storage = { diff --git a/data/loader.js b/data/loader.js index 72aa02cc..5681c853 100644 --- a/data/loader.js +++ b/data/loader.js @@ -111,6 +111,7 @@ config.externalFiles = window.EJS_externalFiles; config.disableDatabases = window.EJS_disableDatabases; config.disableLocalStorage = window.EJS_disableLocalStorage; + config.forceLegacyCores = window.EJS_forceLegacyCores; if (typeof window.EJS_language === "string" && window.EJS_language !== "en-US") { try {