diff --git a/dlls/d3d9/directx.c b/dlls/d3d9/directx.c
index ec4f7aa4155059597b08fe2b28ddefa9407bb770..fd383e96a744367449799d453763915292e77924 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;
     }