From 2215d4707d4ea909269cb7dd73ab3d98b3521cb0 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Tue, 21 Jul 2015 19:42:54 -0700 Subject: [PATCH] Manual merge of #330. --- src/xenia/gpu/gl4/command_processor.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/xenia/gpu/gl4/command_processor.cc b/src/xenia/gpu/gl4/command_processor.cc index a5c514f5e..858314a9e 100644 --- a/src/xenia/gpu/gl4/command_processor.cc +++ b/src/xenia/gpu/gl4/command_processor.cc @@ -2888,10 +2888,7 @@ bool CommandProcessor::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_clear_enabled) { - if (depth_target != kAnyTarget) { + if (depth_clear_enabled && depth_target != kAnyTarget) { // Clear the current depth buffer. // TODO(benvanik): verify format. GLfloat depth = {(copy_depth_clear & 0xFFFFFF00) / float(0xFFFFFF00)};