Stefan Dösinger : d3d9: Do not allow Direct3D9:: GetAdapterModeCount to be called with D3DFMT_UNKNOWN.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Apr 17 08:12:22 CDT 2007
Module: wine
Branch: master
Commit: 7cee0b2ed02a7be63db890148a4db2e7a58feced
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7cee0b2ed02a7be63db890148a4db2e7a58feced
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Tue Apr 17 09:20:54 2007 +0200
d3d9: Do not allow Direct3D9::GetAdapterModeCount to be called with D3DFMT_UNKNOWN.
---
dlls/d3d9/directx.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/d3d9/directx.c b/dlls/d3d9/directx.c
index ec4f7aa..fd383e9 100644
--- a/dlls/d3d9/directx.c
+++ b/dlls/d3d9/directx.c
@@ -100,7 +100,7 @@ static UINT WINAPI IDirect3D9Impl_GetAdapterModeCount(LPDIRECT3D9 iface, UINT Ad
IDirect3D9Impl *This = (IDirect3D9Impl *)iface;
/* Others than that not supported by d3d9, but reported by wined3d for ddraw. Filter them out */
- if(Format != D3DFMT_X8R8G8B8 && Format != D3DFMT_R5G6B5 && Format != D3DFMT_UNKNOWN) {
+ if(Format != D3DFMT_X8R8G8B8 && Format != D3DFMT_R5G6B5) {
return 0;
}
More information about the wine-cvs
mailing list