From f30980da731b7e51144052c8f4d059191b638e81 Mon Sep 17 00:00:00 2001 From: shashclp Date: Wed, 16 Apr 2008 17:32:29 +0000 Subject: [PATCH] - Added zzip as a mandatory dependency on the VisualC project file - Fixed a compile problem on VisualC --- desmume/src/windows/OGLRender.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/windows/OGLRender.c b/desmume/src/windows/OGLRender.c index e9dc163d8..ca510ecc8 100644 --- a/desmume/src/windows/OGLRender.c +++ b/desmume/src/windows/OGLRender.c @@ -272,11 +272,11 @@ void NDS_glClDepth() void NDS_glClearDepth(unsigned long v) { + u32 depth24b; + if(beginCalled) glEnd(); - u32 depth24b; - v &= 0x7FFFF; depth24b = (v*0x200)+((v+1)/0x8000);