mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
ES2 crash fix: Don't draw depth if lacking fragment shader depth write.
This commit is contained in:
1 parent
16f93a2684
commit
9ec41436d1
2 files changed
+2
-1
No files matched your search
@@ -575,7 +575,7 @@ void FramebufferManagerCommon::SetDepthFrameBuffer(bool isClearingDepth) {
|
||||
|
||||
// Need to upload the first line of depth buffers, for Burnout Dominator lens flares. See issue #11100 and comments to #16081.
|
||||
// Might make this more generic and upload the whole depth buffer if we find it's needed for something.
|
||||
if (newlyUsingDepth) {
|
||||
if (newlyUsingDepth && draw_->GetDeviceCaps().fragmentShaderDepthWriteSupported) {
|
||||
// Sanity check the depth buffer pointer.
|
||||
if (Memory::IsValidRange(currentRenderVfb_->z_address, currentRenderVfb_->width * 2)) {
|
||||
const u16 *src = (const u16 *)Memory::GetPointerUnchecked(currentRenderVfb_->z_address);
|
||||
|
||||
Reference in new issue
Block a user