Explorar o código

Fix effect from EffectWrapper not being created correctly in WebGPU

Popov72 %!s(int64=4) %!d(string=hai) anos
pai
achega
5321324aae
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/Materials/effectRenderer.ts

+ 1 - 2
src/Materials/effectRenderer.ts

@@ -265,11 +265,10 @@ export class EffectWrapper {
                 creationOptions.onCompiled
             );
         } else {
-            this.effect = new Effect(effectCreationOptions,
+            this.effect = creationOptions.engine.createEffect(effectCreationOptions,
                 creationOptions.attributeNames || ["position"],
                 uniformNames,
                 creationOptions.samplerNames,
-                creationOptions.engine,
                 defines,
                 undefined,
                 creationOptions.onCompiled,