Skip to content

Commit afec35f

Browse files
[Editor] Fix Scissoring in ImGUI;
1 parent 5ac4f15 commit afec35f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Engine/Staple.Editor/ImGuiProxy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ private void Render(ImDrawDataPtr drawData)
632632
depthWrite = false,
633633
enableDepth = false,
634634
primitiveType = MeshTopology.Triangles,
635-
scissor = new(x, (int)(Math.Min(clipRect.Z, 65535.0f) - x), y, (int)(Math.Min(clipRect.W, 65535.0f) - y)),
635+
scissor = new(x, (int)clipRect.Z, y, (int)clipRect.W),
636636
indexBuffer = indexBuffer,
637637
vertexBuffer = vertexBuffer,
638638
startVertex = currentVertex + (int)drawCmd.VtxOffset,

0 commit comments

Comments
 (0)