We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b513baf commit 150f419Copy full SHA for 150f419
common/src/main/kotlin/com/lambda/graphics/pipeline/ScissorAdapter.kt
@@ -44,8 +44,8 @@ object ScissorAdapter {
44
val pos1 = rect.leftTop * RenderMain.scaleFactor
45
val pos2 = rect.rightBottom * RenderMain.scaleFactor
46
47
- val width = pos2.x - pos1.x
48
- val height = pos2.y - pos1.y
+ val width = (pos2.x - pos1.x).coerceAtLeast(0.0)
+ val height = (pos2.y - pos1.y).coerceAtLeast(0.0)
49
50
val y = mc.window.framebufferHeight - pos1.y - height
51
0 commit comments