summaryrefslogtreecommitdiff
path: root/gl.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-04 21:39:13 -0400
committerpommicket <pommicket@gmail.com>2023-08-04 21:42:53 -0400
commit49ab483be3e7af88a3932a43f222aa42cacd3515 (patch)
tree9ad0157a22ed6cd9c54458b6c75ffa7eaa2253e7 /gl.c
parentce199f9384f9f9376417110574a07cfd731e3a79 (diff)
document links seem to be working
Diffstat (limited to 'gl.c')
-rw-r--r--gl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gl.c b/gl.c
index 4b41f42..c1ec812 100644
--- a/gl.c
+++ b/gl.c
@@ -230,6 +230,8 @@ void gl_geometry_init(void) {
}
void gl_geometry_rect(Rect r, u32 color_rgba) {
+ if (r.size.x <= 0 || r.size.y <= 0)
+ return;
vec4 color = rgba_u32_to_vec4(color_rgba);
vec2 p1 = r.pos;