Skip to content

Commit

Permalink
Report depth test equality checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed Nov 8, 2015
1 parent a0604c6 commit 2c0b662
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions GPU/GLES/StateMapping.cpp
Expand Up @@ -682,6 +682,11 @@ void TransformDrawEngine::ApplyDrawState(int prim) {
if (gstate.isDepthWriteEnabled() || alwaysDepthWrite) {
framebufferManager_->SetDepthUpdated();
}

GEComparison ztest = gstate.getDepthTestFunction();
if (ztest == GE_COMP_EQUAL || ztest == GE_COMP_NOTEQUAL || ztest == GE_COMP_LEQUAL || ztest == GE_COMP_GEQUAL) {
DEBUG_LOG_REPORT_ONCE(ztestequal, G3D, "Depth test requiring depth equality: %d", ztest);
}
} else {
glstate.depthTest.disable();
}
Expand Down

0 comments on commit 2c0b662

Please sign in to comment.