From 3d2a5b249555304818edb413c7a3b3bf697ca7be Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Thu, 12 Nov 2015 14:15:59 -0800 Subject: [PATCH] Reverting depth clear restriction in #330. The comment is still true: games seem to need more clears. --- src/xenia/gpu/gl4/gl4_command_processor.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/xenia/gpu/gl4/gl4_command_processor.cc b/src/xenia/gpu/gl4/gl4_command_processor.cc index 2b14e8c31..222d7e672 100644 --- a/src/xenia/gpu/gl4/gl4_command_processor.cc +++ b/src/xenia/gpu/gl4/gl4_command_processor.cc @@ -1872,8 +1872,7 @@ bool GL4CommandProcessor::IssueCopy() { // TODO(benvanik): figure out real condition here (maybe when color cleared?) // HACK: things seem to need their depth buffer cleared a lot more // than as indicated by the depth_clear_enabled flag. - // if (depth_target != kAnyTarget) { - if (depth_clear_enabled && depth_target != kAnyTarget) { + if (depth_target != kAnyTarget) { // Clear the current depth buffer. // TODO(benvanik): verify format. GLfloat depth = {(copy_depth_clear & 0xFFFFFF00) /