revert accidental commits, assert for zero-sized build_vertex_buffer(), explain the TODO on no-clear on skybox present

This commit is contained in:
2024-10-08 08:30:26 +03:00
parent 60716c6d7b
commit aef3f6444e
2 changed files with 5 additions and 4 deletions

View File

@ -70,6 +70,9 @@ void clear_draw_buffer(void) {
(1.0f / 255) * 230,
(1.0f / 255) * 230, 1);
/* TODO: don't clear color when skybox is applied? */
/* for that window should match framebuffer */
/* also it is driver dependent, from what i can gather */
glClear(GL_COLOR_BUFFER_BIT |
GL_DEPTH_BUFFER_BIT |
GL_STENCIL_BUFFER_BIT);