mirror of
https://github.com/isledecomp/isle.pizza.git
synced 2026-01-11 10:41:15 +00:00
Add option to disable offscreen rendering
This commit is contained in:
parent
89f7e96ea9
commit
fa5d35d188
@ -971,6 +971,11 @@
|
|||||||
document.documentElement.style.overflow = 'hidden';
|
document.documentElement.style.overflow = 'hidden';
|
||||||
document.documentElement.style.overscrollBehavior = 'none';
|
document.documentElement.style.overscrollBehavior = 'none';
|
||||||
|
|
||||||
|
Module["disableOffscreenCanvases"] = document.getElementById('renderer-select').value == "0 0x682656f3 0x0 0x0 0x2000000";
|
||||||
|
if (Module["disableOffscreenCanvases"]) {
|
||||||
|
console.log('Disabled OffscreenCanvas for Software rendering');
|
||||||
|
}
|
||||||
|
|
||||||
Module["removeRunDependency"]("isle");
|
Module["removeRunDependency"]("isle");
|
||||||
emscriptenCanvas.focus();
|
emscriptenCanvas.focus();
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user