瀏覽代碼

Revert the changes back

Popov72 4 年之前
父節點
當前提交
72a5985548
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/Materials/effectRenderer.ts

+ 2 - 1
src/Materials/effectRenderer.ts

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