From a7a01f6ddaa20b13c126cae4dd3243cf3db12f8f Mon Sep 17 00:00:00 2001 From: Ed Mackey Date: Wed, 6 Jan 2016 15:29:41 -0500 Subject: [PATCH] Fix #3386 --- Source/Scene/Scene.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Scene/Scene.js b/Source/Scene/Scene.js index e8c973a689ab..304a0f9cf908 100644 --- a/Source/Scene/Scene.js +++ b/Source/Scene/Scene.js @@ -1982,14 +1982,14 @@ define([ us.update(frameState); + scratchRectangle.x = drawingBufferPosition.x - ((rectangleWidth - 1.0) * 0.5); + scratchRectangle.y = (this.drawingBufferHeight - drawingBufferPosition.y) - ((rectangleHeight - 1.0) * 0.5); + var passState = this._pickFramebuffer.begin(scratchRectangle); updatePrimitives(this); createPotentiallyVisibleSet(this); updateAndClearFramebuffers(this, passState, scratchColorZero, true); - scratchRectangle.x = drawingBufferPosition.x - ((rectangleWidth - 1.0) * 0.5); - scratchRectangle.y = (this.drawingBufferHeight - drawingBufferPosition.y) - ((rectangleHeight - 1.0) * 0.5); - executeCommands(this, passState); resolveFramebuffers(this, passState); @@ -2233,7 +2233,7 @@ define([ * * @example * scene = scene && scene.destroy(); - * + * * @see Scene#isDestroyed */ Scene.prototype.destroy = function() {