H. Verbeet : wined3d: Explicitly enable depth buffer writing in depth_blt() .

Alexandre Julliard julliard at winehq.org
Wed Jun 25 04:47:16 CDT 2008


Module: wine
Branch: master
Commit: c433562a68743088283f61656b950cfe50347e59
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c433562a68743088283f61656b950cfe50347e59

Author: H. Verbeet <hverbeet at gmail.com>
Date:   Wed Jun 25 00:32:00 2008 +0200

wined3d: Explicitly enable depth buffer writing in depth_blt().

This prevents conflicts with WINED3DRS_ZWRITEENABLE.

---

 dlls/wined3d/drawprim.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c
index b5e59b8..7214bf8 100644
--- a/dlls/wined3d/drawprim.c
+++ b/dlls/wined3d/drawprim.c
@@ -732,6 +732,7 @@ static void depth_blt(IWineD3DDevice *iface, GLuint texture) {
     glDisable(GL_STENCIL_TEST);
     glEnable(GL_DEPTH_TEST);
     glDepthFunc(GL_ALWAYS);
+    glDepthMask(GL_TRUE);
     glBlendFunc(GL_ZERO, GL_ONE);
 
     GL_EXTCALL(glActiveTextureARB(GL_TEXTURE0_ARB));




More information about the wine-cvs mailing list