diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-11 14:19:38 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-11 14:50:02 -0500 |
commit | aaebf30ccd75ba27ec55bc45ed886cdae2ca58ef (patch) | |
tree | 7dc6e7c752dacdd916a96f304fa51edd61db0cb0 /gl.c | |
parent | 90b4b08717730733402df25190bba0cc5d2fd952 (diff) |
highlight matching parentheses
Diffstat (limited to 'gl.c')
-rw-r--r-- | gl.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -222,6 +222,7 @@ static void gl_geometry_rect_border(Rect r, float border_thickness, u32 color) { static void gl_geometry_draw(void) { size_t ntriangles = arr_len(gl_geometry_triangles); + if (ntriangles == 0) return; // convert coordinates to NDC for (size_t i = 0; i < ntriangles; ++i) { |