浏览代码

Fix effect from EffectWrapper not being created correctly in WebGPU

Popov72 4 年之前
父节点
当前提交
5321324aae
共有 1 个文件被更改,包括 1 次插入2 次删除
  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,