Replaced glScissor and glViewport with gl_state functions

This commit is contained in:
korenkonder
2024-06-16 11:53:49 +03:00
parent d230255af6
commit 0ce40e326d
13 changed files with 135 additions and 59 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ bool light_proj::set() {
static const GLfloat depth_clear = 1.0f;
shadow_texture[0].Bind();
glViewport(0, 0, 2048, 512);
gl_state_set_viewport(0, 0, 2048, 512);
gl_state_enable_depth_test();
gl_state_set_depth_mask(GL_TRUE);
glClearBufferfv(GL_COLOR, 0, (float_t*)&color_clear);