Reverting depth clear restriction in #330.

The comment is still true: games seem to need more clears.
This commit is contained in:
Ben Vanik 2015-11-12 14:15:59 -08:00
parent e858f87e3e
commit 3d2a5b2495
1 changed files with 1 additions and 2 deletions

View File

@ -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) /