Browse Source

Revert the changes back

Popov72 4 years ago
parent
commit
72a5985548
1 changed files with 2 additions and 1 deletions
  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,