Skip to content

Commit a7a01f6

Browse files
committed
Fix #3386
1 parent 275386d commit a7a01f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/Scene/Scene.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1982,14 +1982,14 @@ define([
19821982

19831983
us.update(frameState);
19841984

1985+
scratchRectangle.x = drawingBufferPosition.x - ((rectangleWidth - 1.0) * 0.5);
1986+
scratchRectangle.y = (this.drawingBufferHeight - drawingBufferPosition.y) - ((rectangleHeight - 1.0) * 0.5);
1987+
19851988
var passState = this._pickFramebuffer.begin(scratchRectangle);
19861989
updatePrimitives(this);
19871990
createPotentiallyVisibleSet(this);
19881991
updateAndClearFramebuffers(this, passState, scratchColorZero, true);
19891992

1990-
scratchRectangle.x = drawingBufferPosition.x - ((rectangleWidth - 1.0) * 0.5);
1991-
scratchRectangle.y = (this.drawingBufferHeight - drawingBufferPosition.y) - ((rectangleHeight - 1.0) * 0.5);
1992-
19931993
executeCommands(this, passState);
19941994
resolveFramebuffers(this, passState);
19951995

@@ -2233,7 +2233,7 @@ define([
22332233
*
22342234
* @example
22352235
* scene = scene && scene.destroy();
2236-
*
2236+
*
22372237
* @see Scene#isDestroyed
22382238
*/
22392239
Scene.prototype.destroy = function() {

0 commit comments

Comments
 (0)