Module: wine Branch: master Commit: eef51ed4ca95342a43dd604bc311299fbd800567 URL: http://source.winehq.org/git/wine.git/?a=commit;h=eef51ed4ca95342a43dd604bc3...
Author: Roderick Colenbrander thunderbird2k@gmx.net Date: Fri Mar 21 20:50:26 2008 +0000
wined3d: We don't offer index/vertex buffer caps. Neither do Windows drivers (at least Nvidia, Ati and Intel).
---
dlls/wined3d/directx.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index 2cc7b03..79da9c1 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -2523,7 +2523,11 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt /* Do nothing, continue with checking the format below */ break; } - } + } else if((RType == WINED3DRTYPE_INDEXBUFFER) || (RType == WINED3DRTYPE_VERTEXBUFFER)){ + /* For instance vertexbuffer/indexbuffer aren't supported yet because no Windows drivers seem to offer it */ + TRACE_(d3d_caps)("Unhandled resource type D3DRTYPE_INDEXBUFFER / D3DRTYPE_VERTEXBUFFER\n"); + return WINED3DERR_NOTAVAILABLE; + }
/* This format is nothing special and it is supported perfectly. * However, ati and nvidia driver on windows do not mark this format as