Merge pull request #666 from thecodingmachine/disablepipeline

Removing pipeline related code
This commit is contained in:
Kharhamel
2021-01-28 14:53:33 +01:00
committed by GitHub
2 changed files with 8 additions and 5 deletions
+5 -3
View File
@@ -43,8 +43,9 @@ export class ActionableItem {
} }
this.isSelectable = true; this.isSelectable = true;
if (this.sprite.pipeline) { if (this.sprite.pipeline) {
this.sprite.setPipeline(OutlinePipeline.KEY); // Commented out to try to fix MacOS issue
this.sprite.pipeline.set2f('uTextureSize', this.sprite.texture.getSourceImage().width, this.sprite.texture.getSourceImage().height); /*this.sprite.setPipeline(OutlinePipeline.KEY);
this.sprite.pipeline.set2f('uTextureSize', this.sprite.texture.getSourceImage().width, this.sprite.texture.getSourceImage().height);*/
} }
} }
@@ -56,7 +57,8 @@ export class ActionableItem {
return; return;
} }
this.isSelectable = false; this.isSelectable = false;
this.sprite.resetPipeline(); // Commented out to try to fix MacOS issue
//this.sprite.resetPipeline();
} }
/** /**
+3 -2
View File
@@ -93,10 +93,11 @@ const config: GameConfig = {
}, },
callbacks: { callbacks: {
postBoot: game => { postBoot: game => {
const renderer = game.renderer; // Commented out to try to fix MacOS bug
/*const renderer = game.renderer;
if (renderer instanceof WebGLRenderer) { if (renderer instanceof WebGLRenderer) {
renderer.pipelines.add(OutlinePipeline.KEY, new OutlinePipeline(game)); renderer.pipelines.add(OutlinePipeline.KEY, new OutlinePipeline(game));
} }*/
} }
} }
}; };