gl_rend_state massive overhaul. Created render_data_context

This commit is contained in:
korenkonder
2025-04-25 20:38:15 +03:00
parent 9cdd9eaf94
commit 452b12e000
71 changed files with 4587 additions and 3541 deletions
+3 -3
View File
@@ -6,11 +6,11 @@
#include "shared.hpp"
#include "gl_rend_state.hpp"
void fbo_blit(GLuint src_fbo, GLuint dst_fbo,
void fbo_blit(p_gl_rend_state& p_gl_rend_st, GLuint src_fbo, GLuint dst_fbo,
GLint src_x, GLint src_y, GLint src_width, GLint src_height,
GLint dst_x, GLint dst_y, GLint dst_width, GLint dst_height, GLbitfield mask, GLenum filter) {
gl_rend_state.bind_read_framebuffer(src_fbo);
gl_rend_state.bind_draw_framebuffer(dst_fbo);
p_gl_rend_st.bind_read_framebuffer(src_fbo);
p_gl_rend_st.bind_draw_framebuffer(dst_fbo);
glBlitFramebuffer(src_x, src_y, src_x + src_width, src_y + src_height,
dst_x, dst_y, dst_x + dst_width, dst_y + dst_height, mask, filter);
}