Manual merge of #330.

This commit is contained in:
Ben Vanik 2015-07-21 19:42:54 -07:00
parent b0c223f2d8
commit 2215d4707d
1 changed files with 1 additions and 4 deletions

View File

@ -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)};