mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-12 09:08:11 +03:00
Small overhaul
This commit is contained in:
@@ -55,16 +55,14 @@ namespace renderer {
|
||||
shaders_ft.draw_arrays(GL_TRIANGLE_STRIP, 0, 4);
|
||||
gl_state_enable_depth_test();
|
||||
|
||||
glCopyImageSubData(rctx_ptr->render_buffer.GetColorTex(),
|
||||
GL_TEXTURE_2D, 0, 0, 0, 0, rt->GetColorTex(),
|
||||
GL_TEXTURE_2D, 0, 0, 0, 0, fbo.width, fbo.height, 1);
|
||||
glCopyImageSubData(rctx_ptr->render_buffer.GetColorTex(), GL_TEXTURE_2D, 0, 0, 0, 0,
|
||||
rt->GetColorTex(), GL_TEXTURE_2D, 0, 0, 0, 0, fbo.width, fbo.height, 1);
|
||||
}
|
||||
|
||||
void Transparency::copy(GLuint texture) {
|
||||
glCopyImageSubData(texture,
|
||||
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);
|
||||
glCopyImageSubData(texture, GL_TEXTURE_2D, 0, 0, 0, 0,
|
||||
fbo.textures[0], GL_TEXTURE_2D, 0, 0, 0, 0, fbo.width, fbo.height, 1);
|
||||
fbo.bind_buffer();
|
||||
gl_state_set_viewport(0, 0, fbo.width, fbo.height);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user