From 5c2b831cedc8a9da24a2f6341d6db57ade5a0d69 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Fri, 7 Jul 2023 01:07:58 -0400 Subject: [PATCH] send Color4 to GL.Uniform4 --- Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index 7aa7a61..91a2a76 100644 --- a/Program.cs +++ b/Program.cs @@ -323,7 +323,7 @@ public class Game : GameWindow { } void DrawTexture(Texture texture, Box2i box, Color4 color) { - GL.Uniform4(shader.GetUniformLocation("color"), color.R, color.G, color.B, color.A); + GL.Uniform4(shader.GetUniformLocation("color"), color); SetVertices(box.Min.X, box.Min.Y, box.Size.X, box.Size.Y); GL.BufferData(BufferTarget.ArrayBuffer, vertices.Length * sizeof(float), vertices, BufferUsageHint.DynamicDraw); GL.BindTexture(TextureTarget.Texture2D, texture.Handle);