소스 검색

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,