From 2e2cc638a0202c6c1d31dfda805cfbe7b56c2b9f Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 14 Sep 2008 20:11:21 +0000 Subject: [PATCH] fix depth buffering which I just broke --- desmume/src/OGLRender.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/desmume/src/OGLRender.cpp b/desmume/src/OGLRender.cpp index c7d7237bd..b99cf4397 100644 --- a/desmume/src/OGLRender.cpp +++ b/desmume/src/OGLRender.cpp @@ -851,10 +851,8 @@ static void BeginRenderPoly() setTexture(textureFormat, texturePalette); - alphaDepthWrite = false; if(isTranslucent) enableDepthWrite = alphaDepthWrite; - enableDepthWrite = false; //handle shadow polys if(envMode == 3)