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:
parent
1dc2617028
commit
395e7fba41
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user