Explorar o código

Merge pull request #9576 from Popov72/fix-gpu-particle

Fix crash when using GPU particles
David Catuhe %!s(int64=4) %!d(string=hai) anos
pai
achega
1df4d30601
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Materials/effect.ts

+ 1 - 1
src/Materials/effect.ts

@@ -286,7 +286,7 @@ export class Effect implements IDisposable {
             fragmentSource = baseName.fragment || baseName;
         }
 
-        this._processingContext = engine!._getShaderProcessingContext();
+        this._processingContext = this._engine._getShaderProcessingContext();
 
         const processorOptions: ProcessingOptions = {
             defines: this.defines.split("\n"),