From cefdff9a6a449506ddaeae56a2e038a1a2106846 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Fri, 5 Feb 2021 11:42:01 -0500 Subject: converted everything to modern opengl for some reason SDL_GL_SwapWindow seems to be in a busy loop? --- math.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'math.c') diff --git a/math.c b/math.c index 00735cf..2b01730 100644 --- a/math.c +++ b/math.c @@ -720,6 +720,8 @@ static void rect_print(Rect r) { } #if MATH_GL + +#if 0 // must be rendering GL_QUADS to use these functions! static void rect_render(Rect r) { @@ -754,7 +756,7 @@ static void rect_render_border(Rect r, float border_thickness) { glVertex2f(x2+border_radius, y2+border_radius); glVertex2f(x2-border_radius, y2+border_radius); } - +#endif /* gl grayscale color -- cgit v1.2.3