mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 02:46:23 +00:00
Hide webgl2 option on unsupported devices
Some checks failed
Make Latest Folder On EmulatorJS CDN / run (push) Has been cancelled
Some checks failed
Make Latest Folder On EmulatorJS CDN / run (push) Has been cancelled
This commit is contained in:
parent
7763e2040e
commit
97ea470ea0
1 changed files with 6 additions and 4 deletions
|
@ -4339,10 +4339,12 @@ class EmulatorJS {
|
|||
addToMenu(this.localization('Shaders'), 'shader', shaderMenu, 'disabled');
|
||||
}
|
||||
|
||||
if (this.supportsWebgl2) {
|
||||
addToMenu(this.localization('WebGL2') + " (" + this.localization('Requires page reload') + ")", 'webgl2Enabled', {
|
||||
'enabled': this.localization("Enabled"),
|
||||
'disabed': this.localization("Disabled")
|
||||
}, this.defaultWebgl2 ? "enabled" : "disabed");
|
||||
}
|
||||
|
||||
addToMenu(this.localization('FPS'), 'fps', {
|
||||
'show': this.localization("show"),
|
||||
|
|
Loading…
Reference in a new issue