Add option to disable offscreen rendering

This commit is contained in:
Christian Semmler 2025-07-02 18:54:56 -07:00
parent 89f7e96ea9
commit fa5d35d188
No known key found for this signature in database
GPG Key ID: 086DAA1360BEEE5C

View File

@ -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();
}); });