[D3D8] Mark some surface formats as not supported

Christian Costa titan.costa at wanadoo.fr
Tue May 13 16:51:51 CDT 2003


Hi,

Since we don't support ST3C or others non basic formats, don't pretend to.
This make texture works in Incoming Forces demo.

Bye.

Changelog :
Mark some surface formats as not supported.

Christian Costa   titan.costa at wanadoo.fr


-------------- next part --------------
Index: directx.c
===================================================================
RCS file: /home/wine/wine/dlls/d3d8/directx.c,v
retrieving revision 1.29
diff -u -r1.29 directx.c
--- directx.c	11 May 2003 03:35:27 -0000	1.29
+++ directx.c	13 May 2003 21:21:42 -0000
@@ -272,6 +272,18 @@
     ICOM_THIS(IDirect3D8Impl,iface);
     FIXME("(%p)->(Adptr:%d, DevType: %x, AdptFmt: %d, Use: %ld, ResTyp: %x, CheckFmt: %d)\n", This, Adapter, DeviceType,
           AdapterFormat, Usage, RType, CheckFormat);
+    switch(CheckFormat) {
+	case D3DFMT_UYVY:
+	case D3DFMT_YUY2:
+	case D3DFMT_DXT1:
+	case D3DFMT_DXT2:
+	case D3DFMT_DXT3:
+	case D3DFMT_DXT4:
+	case D3DFMT_DXT5:
+	   /* Since we do not support these formats right now, don't pretend to. */
+	   return D3DERR_NOTAVAILABLE;
+	default:
+    }
     return D3D_OK;
 }
 


More information about the wine-patches mailing list