[D3D] Fix some broken games...

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

 



Changelog:
 - some broken games do not put the TEXTURE flags in the surface caps (and I
   check in real Windows, it really works like that :-) )

-- 
		 Lionel Ulmer - http://www.bbrox.org/
--- dlls/ddraw_CVS/dsurface/main.c	Sat Jul  5 14:24:44 2003
+++ dlls/ddraw/dsurface/main.c	Sat Jul 12 23:12:05 2003
@@ -203,7 +203,11 @@
     {
 	HRESULT ret_value = S_OK;
 
-	if ((This->surface_desc.ddsCaps.dwCaps & DDSCAPS_TEXTURE) == 0) return E_NOINTERFACE;
+	/* Note: this is not exactly how Windows does it... But this seems not to hurt the only
+	         application I know creating a texture without this flag set and it will prevent
+		 bugs in other parts of Wine.
+	*/
+	This->surface_desc.ddsCaps.dwCaps |= DDSCAPS_TEXTURE;
 
 	/* In case the texture surface was created before the D3D creation */
 	if (This->tex_private == NULL) {

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

  Powered by Linux