Skip to content

Commit

Permalink
fixed(display): The tile preview is only partially displayed when zoo…
Browse files Browse the repository at this point in the history
…med out.

Signed-off-by: Tim Deubler <[email protected]>
  • Loading branch information
TerminalTim committed Nov 1, 2023
1 parent e8fbc53 commit 84d99b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/display/src/displays/webgl/GLRender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,8 @@ export class GLRender implements BasicRender {
const previewTransformMatrix = this.initPreviewMatrix(x, y, scale);

if (buffer.scissor) {
this.initScissor(x - sx * scale, y - sy * scale, dWidth * scale, this.vPMat);
this.initScissor( x + dx, y + dy, tileSize * scale, this.vPMat);
// this.initScissor(x - sx * scale, y - sy * scale, dWidth * scale, this.vPMat);
// this.initScissor(px, py, tileSize, previewTransformMatrix);
}
this.initStencil(dTile.i, tileSize, bufferData.data.stencils);
Expand Down

0 comments on commit 84d99b8

Please sign in to comment.