Skip to content

Commit

Permalink
fix scissor rect
Browse files Browse the repository at this point in the history
  • Loading branch information
aquagoose committed Jul 15, 2024
1 parent a935a92 commit e6bcadf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grabs.Graphics.D3D11/D3D11CommandList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public override void SetViewport(in Viewport viewport)

public override void SetScissor(in Rectangle rectangle)
{
RECT rect = new RECT(rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height);
RECT rect = new RECT(rectangle.X, rectangle.Y, rectangle.X + rectangle.Width, rectangle.Y + rectangle.Height);
Context->RSSetScissorRects(1, &rect);
}

Expand Down

0 comments on commit e6bcadf

Please sign in to comment.