From 6e0703d11b4ed5e34195cd5a68e3c482a53399ad Mon Sep 17 00:00:00 2001 From: Christian Costa Date: Tue, 13 May 2003 23:39:14 +0000 Subject: [PATCH] Mark some surface formats as not supported. --- dlls/d3d8/directx.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dlls/d3d8/directx.c b/dlls/d3d8/directx.c index 22bf3377f74..7e8d37c230e 100644 --- a/dlls/d3d8/directx.c +++ b/dlls/d3d8/directx.c @@ -272,6 +272,19 @@ HRESULT WINAPI IDirect3D8Impl_CheckDeviceFormat (LPDIRECT3D8 iface, 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: + break; + } return D3D_OK; }