From 7c0107704dd5b7a3d0d8728ab971837a19bc189e Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Tue, 8 Oct 2024 10:22:31 +0300 Subject: [PATCH] twn_gl_any_rendering.c: describe possible micro optimization --- src/rendering/twn_gl_any_rendering.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rendering/twn_gl_any_rendering.c b/src/rendering/twn_gl_any_rendering.c index 63071f9..a7795c9 100644 --- a/src/rendering/twn_gl_any_rendering.c +++ b/src/rendering/twn_gl_any_rendering.c @@ -66,6 +66,7 @@ void bind_quad_element_buffer(void) { void clear_draw_buffer(void) { + /* TODO: we can optimize a rectangle drawn over whole window to a clear color call*/ glClearColor((1.0f / 255) * 230, (1.0f / 255) * 230, (1.0f / 255) * 230, 1);