Fix webglConfig check. See #2183. Close #2826.

This commit is contained in:
Davide Tantillo 2025-04-27 09:57:43 +02:00
parent 5e39632692
commit 16cbf48698

View File

@ -89,7 +89,7 @@ export class SpineCanvas {
error: () => { }, error: () => { },
dispose: () => { }, dispose: () => { },
} }
if (config.webglConfig) config.webglConfig = { alpha: true }; if (!config.webglConfig) config.webglConfig = { alpha: true };
this.htmlCanvas = canvas; this.htmlCanvas = canvas;
this.context = new ManagedWebGLRenderingContext(canvas, config.webglConfig); this.context = new ManagedWebGLRenderingContext(canvas, config.webglConfig);