[D3D8] Mark some surface formats as not supported

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

 



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@wanadoo.fr


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;
 }
 

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

  Powered by Linux