[D3D] Small texturing fix

Lionel Ulmer lionel.ulmer at free.fr
Fri May 30 13:20:04 CDT 2003


Changelog:
 - fixed a bug in the FrameBuffer => Texture blits

-- 
		 Lionel Ulmer - http://www.bbrox.org/
-------------- next part --------------
--- dlls/ddraw_CVS/d3dtexture.c	2003-05-30 15:15:00.000000000 +0200
+++ dlls/ddraw/d3dtexture.c	2003-05-30 18:02:37.000000000 +0200
@@ -264,7 +264,7 @@
 		return DDERR_INVALIDPARAMS;
 	    }
 	    
-	    for (y = src_ptr->surface_desc.dwHeight - rsrc->top;
+	    for (y = (src_ptr->surface_desc.dwHeight - rsrc->top - 1);
 		 y >= (src_ptr->surface_desc.dwHeight - (rsrc->top + height));
 		 y--) {
 		glCopyTexSubImage2D(GL_TEXTURE_2D, surf_ptr->mipmap_level,


More information about the wine-patches mailing list