diff options
Diffstat (limited to 'gl.c')
-rw-r--r-- | gl.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |