Henri Verbeet : wined3d: Don' t abuse blending to disable color writes in surface_depth_blt().
Alexandre Julliard
julliard at winehq.org
Fri Jul 3 09:31:08 CDT 2009
Module: wine
Branch: master
Commit: 532b99078e5e04faf97a9e24138243a65393f6b9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=532b99078e5e04faf97a9e24138243a65393f6b9
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Fri Jul 3 09:39:21 2009 +0200
wined3d: Don't abuse blending to disable color writes in surface_depth_blt().
---
dlls/wined3d/surface.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 3e0413e..454a86f 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -4334,14 +4334,14 @@ static void surface_depth_blt(IWineD3DSurfaceImpl *This, GLuint texture, GLsizei
glPushAttrib(GL_ENABLE_BIT | GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT | GL_VIEWPORT_BIT);
glDisable(GL_CULL_FACE);
- glEnable(GL_BLEND);
+ glDisable(GL_BLEND);
glDisable(GL_ALPHA_TEST);
glDisable(GL_SCISSOR_TEST);
glDisable(GL_STENCIL_TEST);
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_ALWAYS);
glDepthMask(GL_TRUE);
- glBlendFunc(GL_ZERO, GL_ONE);
+ glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE);
glViewport(0, 0, w, h);
surface_get_depth_blt_info(target, w, h, &info);
More information about the wine-cvs
mailing list