[D3D] Small texturing fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
		 Lionel Ulmer - http://www.bbrox.org/
--- 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,

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux