From 8ca0cddb7cae01a52eaebfed6af9a3ef3c980027 Mon Sep 17 00:00:00 2001 From: zeromus Date: Wed, 24 Jun 2009 05:17:32 +0000 Subject: [PATCH] gfx3d: add a default clear depth of maximum value (most distant) for games which never set it. --- desmume/src/gfx3d.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desmume/src/gfx3d.cpp b/desmume/src/gfx3d.cpp index 8208ce38c..a107d1c38 100644 --- a/desmume/src/gfx3d.cpp +++ b/desmume/src/gfx3d.cpp @@ -343,6 +343,8 @@ void gfx3d_reset() memset(gfx3d_convertedScreen,0,sizeof(gfx3d_convertedScreen)); memset(gfx3d_convertedAlpha,0,sizeof(gfx3d_convertedAlpha)); + + gfx3d.clearDepth = gfx3d_extendDepth_15_to_24(0x7FFF); GFX_FIFOclear(); }