From 382113efd54e5f08c1a9452291c7b1486f92791a Mon Sep 17 00:00:00 2001 From: Mikhail Yurasov Date: Mon, 23 Nov 2015 05:17:59 -0800 Subject: [PATCH 1/2] !!depth.texture is always true here --- app/scripts/classes/DepthyViewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/classes/DepthyViewer.js b/app/scripts/classes/DepthyViewer.js index 45b504d..a25d526 100644 --- a/app/scripts/classes/DepthyViewer.js +++ b/app/scripts/classes/DepthyViewer.js @@ -469,7 +469,7 @@ Copyright (c) 2014 Rafał Lindemann. http://panrafal.github.com/depthy depthTextureSprite = new PIXI.Sprite(depth.texture); depthTextureSprite.filters = [depthBlurFilter]; depthTextureSprite.scale = new PIXI.Point(scale, scale); - depthTextureSprite.renderable = !!depth.texture; + depthTextureSprite.renderable = true; depthTextureSprite.anchor = {x: 0.5, y: 0.5}; depthTextureSprite.position = {x: stageSize.width / 2, y: stageSize.height / 2}; From abe0e3704f5ffa594ad78bb7b586bceeea3502fb Mon Sep 17 00:00:00 2001 From: Mikhail Yurasov Date: Mon, 23 Nov 2015 05:20:52 -0800 Subject: [PATCH 2/2] Remove meaningful line --- app/scripts/classes/DepthyViewer.js | 1 - 1 file changed, 1 deletion(-) diff --git a/app/scripts/classes/DepthyViewer.js b/app/scripts/classes/DepthyViewer.js index a25d526..2c47a8e 100644 --- a/app/scripts/classes/DepthyViewer.js +++ b/app/scripts/classes/DepthyViewer.js @@ -477,7 +477,6 @@ Copyright (c) 2014 Rafał Lindemann. http://panrafal.github.com/depthy if (depth.useAlpha) { // move inverted alpha to rgb, set alpha to 1 depthTextureSprite.filters.push(invertedAlphaToRGBFilter); - depthTextureSprite.filters = depthTextureSprite.filters; } depthTextureContainer.addChild(depthTextureSprite); } else {