fix depth clearing, ghostly modes not using depth layers, ortho with 0..1

This commit is contained in:
2024-10-14 16:00:27 +03:00
parent 19bf88d44e
commit f087bf1f7f
2 changed files with 5 additions and 2 deletions

View File

@ -71,6 +71,9 @@ void clear_draw_buffer(void) {
(1.0f / 255) * 230,
(1.0f / 255) * 230, 1);
glDepthRange(0.0, 1.0);
glDepthMask(GL_TRUE);
/* 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 */