From 8fd00257d3d441566c283ee64f39dcd6f5e9a70c Mon Sep 17 00:00:00 2001 From: "H. Utku Maden" Date: Sun, 9 Jun 2024 19:55:13 +0300 Subject: [PATCH] Fix GL21 driver bug. --- Quik/OpenGL/GL21Driver.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Quik/OpenGL/GL21Driver.cs b/Quik/OpenGL/GL21Driver.cs index 4302ba5..7ed5a59 100644 --- a/Quik/OpenGL/GL21Driver.cs +++ b/Quik/OpenGL/GL21Driver.cs @@ -118,10 +118,10 @@ namespace Quik.OpenGL foreach (DrawCall call in queue) { GL.Scissor( - (int)MathF.Round(call.Bounds.Left), - (int)MathF.Round(view.Bottom - call.Bounds.Bottom), - (int)MathF.Round(call.Bounds.Right), - (int)MathF.Round(view.Bottom - call.Bounds.Top)); + (int)MathF.Round(call.Bounds.Min.X), + (int)MathF.Round(size.Y - call.Bounds.Max.Y), + (int)MathF.Round(call.Bounds.Size.X), + (int)MathF.Round(call.Bounds.Size.Y)); QMat4.Translation(out QMat4 modelMatrix, call.Bounds.Min.X, call.Bounds.Min.Y, 0); QMat4 modelView = viewMatrix * modelMatrix; GL.UniformMatrix4(m4Transforms, false, in modelView);