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
@@ -65,7 +65,7 @@ namespace renderer {
GL_TEXTURE_2D, 0, 0, 0, 0, fbo.textures[0],
GL_TEXTURE_2D, 0, 0, 0, 0, fbo.width, fbo.height, 1);
gl_state_bind_framebuffer(fbo.buffer);
glViewport(0, 0, fbo.width, fbo.height);
gl_state_set_viewport(0, 0, fbo.width, fbo.height);
}
void Transparency::resize(GLuint color_texture, GLuint depth_texture, int32_t width, int32_t height) {