[PATCH] Add D3DPRASTERCAPS_MULTISAMPLE_TOGGLE support (we handle this d3d state already). For now add it behind a dxXersion check, so that d3d8 won't see it. In the end we should get rid of all dxVersion checks in the caps code and perform filterin inside d3d8 but in my opinion this is a Wine >1.0 task.

Roderick Colenbrander thunderbird2k at gmx.net
Mon Apr 28 17:09:46 CDT 2008


---
 dlls/wined3d/directx.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 5d770b1..de2149f 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -2940,6 +2940,9 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter,
     if(GL_SUPPORT(NV_FOG_DISTANCE)) {
         pCaps->RasterCaps         |= WINED3DPRASTERCAPS_FOGRANGE;
     }
+    if(This->dxVersion >8 && GL_SUPPORT(ARB_MULTISAMPLE)) {
+        pCaps->RasterCaps         |= WINED3DPRASTERCAPS_MULTISAMPLE_TOGGLE;
+    }
                         /* FIXME Add:
 			   WINED3DPRASTERCAPS_COLORPERSPECTIVE
 			   WINED3DPRASTERCAPS_STRETCHBLTMULTISAMPLE
-- 
1.5.3.4


--========GMX149821209413308254336--



More information about the wine-patches mailing list