Selaa lähdekoodia

Merge pull request #6688 from sebavan/master

Fix WebGPU
sebavan 6 vuotta sitten
vanhempi
commit
13d9e132f7
2 muutettua tiedostoa jossa 17593 lisäystä ja 17581 poistoa
  1. 17592 17580
      Playground/js/babylonWebGpu.max.js
  2. 1 1
      Playground/js/indexWebGPU.js

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 17592 - 17580
Playground/js/babylonWebGpu.max.js


+ 1 - 1
Playground/js/indexWebGPU.js

@@ -575,7 +575,7 @@ function showError(errorMessage, errorEvent) {
                         await engine.initAsync(window.shadercOptions);
 
                         //create scene
-                        eval("scene = " + createSceneFunction + "()");
+                        eval("scene = " + createSceneFunction + "(engine, canvas)");
 
                         if (!scene) {
                             showError(createSceneFunction + " function must return a scene.", null);