Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions code/graphics/opengl/gropenglpostprocessing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ void gr_opengl_post_process_save_zbuffer()
GR_DEBUG_SCOPE("Save z-Buffer");
if (Post_initialized)
{
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D, Cockpit_depth_texture, 0);
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT, GL_TEXTURE_2D, Cockpit_depth_texture, 0);
gr_zbuffer_clear(TRUE);
zbuffer_saved = true;
}
Expand All @@ -777,7 +777,7 @@ void gr_opengl_post_process_restore_zbuffer()
GR_DEBUG_SCOPE("Restore z-Buffer");

if (zbuffer_saved) {
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D, Scene_depth_texture, 0);
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT, GL_TEXTURE_2D, Scene_depth_texture, 0);

zbuffer_saved = false;
}
Expand Down
Loading