소스 검색

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,