Stefan Dösinger : wined3d, d3d9: Caps correction.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jan 15 07:43:07 CST 2007


Module: wine
Branch: master
Commit: 8658d20b3e663d71c62b99457a5f446374ab7bdc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8658d20b3e663d71c62b99457a5f446374ab7bdc

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Fri Jan 12 23:13:58 2007 +0100

wined3d, d3d9: Caps correction.

---

 dlls/d3d9/directx.c    |    2 +-
 dlls/wined3d/directx.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/d3d9/directx.c b/dlls/d3d9/directx.c
index 57062b2..3dcd931 100644
--- a/dlls/d3d9/directx.c
+++ b/dlls/d3d9/directx.c
@@ -172,7 +172,7 @@ static HRESULT WINAPI IDirect3D9Impl_Get
     HeapFree(GetProcessHeap(), 0, pWineCaps);
 
     /* Some functionality is implemented in d3d9.dll, not wined3d.dll. Add the needed caps */
-    pCaps->Caps2 |= D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES;
+    pCaps->DevCaps2 |= D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES;
     TRACE("(%p) returning %p\n", This, pCaps);
     return hrc;
 }
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index fb76de5..cbcbdc2 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -2243,9 +2243,9 @@ static HRESULT WINAPI IWineD3DImpl_GetDe
        The following fields apply to d3d9 only
        ------------------------------------------------ */
     if (This->dxVersion > 8) {
-        FIXME("Caps support for directx9 is nonexistent at the moment!\n");
+        /* d3d9.dll sets D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES here because StretchRects is implemented in d3d9 */
         *pCaps->DevCaps2                          = 0;
-        /* TODO: D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES and VS3.0 needs at least D3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET */
+        /* TODO: VS3.0 needs at least D3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET */
         *pCaps->MaxNpatchTessellationLevel        = 0;
         *pCaps->MasterAdapterOrdinal              = 0;
         *pCaps->AdapterOrdinalInGroup             = 0;




More information about the wine-cvs mailing list