Prechádzať zdrojové kódy

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

Davide Tantillo 4 mesiacov pred
rodič
commit
16cbf48698
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      spine-ts/spine-webgl/src/SpineCanvas.ts

+ 1 - 1
spine-ts/spine-webgl/src/SpineCanvas.ts

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