Browse Source

[ts] Disable alpha in WebGL context.

badlogic 4 năm trước cách đây
mục cha
commit
c19d84f194
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      spine-ts/spine-webgl/example/drag-and-drop.js

+ 4 - 1
spine-ts/spine-webgl/example/drag-and-drop.js

@@ -162,7 +162,10 @@ class App {
 }
 
 new spine.SpineCanvas(document.getElementById("canvas"), {
-    app: new App()
+    app: new App(),
+    webglConfig: {
+        alpha: false
+    }
 });
 
 class FileDragAndDrop {