I already have a program that can draw textured objects. I want to draw debug lines, so I tried to copy the same sort of drawing process I use for sprites to draw a line. I made a new fragment and vertex shader because lines aren't going to be textured and having a different debug shader could be useful.

My system continues to work if I try to draw a line, but the line doesn't draw. I tried to write code similar to working code for my sprites, but clearly I've missed something or made a mistake.

Vertex Shader:

#version 330 core layout (location = 0) in vec2 position; uniform mat4 uniformView; uniform mat4 uniformProjection; void main() { gl_Position = uniformProjection * uniformView * vec4(position, 0.0f, 1.0f); }

Fragment Shader:

#version 330 core out vec4 color; uniform vec4 uniformColor; void main() { color = uniformColor; }

Drawing Code: