1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-10 10:40:54 +00:00

added checkWebGLSupport flag check in openWindow();

This commit is contained in:
lgtst 2022-11-29 13:24:02 +00:00
parent 1dc2617028
commit 395e7fba41

View File

@ -108,6 +108,12 @@ export class Window extends PsychObject
this._addAttribute("autoLog", autoLog);
this._addAttribute("size", []);
if (this._psychoJS._checkWebGLSupport)
{
// see checkWebGLSupport() method for details.
PIXI.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = true;
}
// setup PIXI:
this._setupPixi();