Explorar o código

Revert the changes back

Popov72 %!s(int64=4) %!d(string=hai) anos
pai
achega
72a5985548
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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,