From: Henri Verbeet Subject: [PATCH 1/1] wined3d: Specify the depth range in surface_depth_blt(). Message-Id: <1329927027-4677-1-git-send-email-hverbeet@codeweavers.com> Date: Wed, 22 Feb 2012 17:10:27 +0100 This is for bug 28620. --- dlls/wined3d/surface.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index ac44194..d293940 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -5561,6 +5561,7 @@ static void surface_depth_blt(const struct wined3d_surface *surface, struct wine glDepthMask(GL_TRUE); glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE); glViewport(x, y, w, h); + glDepthRange(0.0, 1.0); SetRect(&rect, 0, h, w, 0); surface_get_blt_info(target, &rect, surface->pow2Width, surface->pow2Height, &info); -- 1.7.3.4