VirtualBox

Ignore:
Timestamp:
Jul 2, 2010 5:48:55 PM (14 years ago)
Author:
vboxsync
Message:

wddm/3d: disabled set render target code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp

    r30582 r30585  
    35063506    PVBOXWDDMDISP_ALLOCATION pAlloc = &pRc->aAllocations[pData->SubResourceIndex];
    35073507    Assert(pRc->RcDesc.fFlags.RenderTarget);
    3508     Assert(pRc->aAllocations[pData->SubResourceIndex].enmD3DIfType == VBOXDISP_D3DIFTYPE_SURFACE);
     3508    Assert(pAlloc->enmD3DIfType == VBOXDISP_D3DIFTYPE_SURFACE);
    35093509    Assert(pAlloc->hAllocation);
    35103510    D3DDDICB_SETDISPLAYMODE DdiDm = {0};
    35113511    DdiDm.hPrimaryAllocation = pAlloc->hAllocation;
    35123512//    DdiDm.PrivateDriverFormatAttribute = 0;
    3513     hr = pDevice->RtCallbacks.pfnSetDisplayModeCb(pDevice->hDevice, &DdiDm);
     3513#if 0
     3514    IDirect3DSurface9 *pD3DIfSurf = (IDirect3DSurface9*)pAlloc->pD3DIf;
     3515    hr = pDevice->pDevice9If->SetRenderTarget(0, pD3DIfSurf);
    35143516    Assert(hr == S_OK);
     3517    if (hr == S_OK)
     3518#endif
     3519    {
     3520        hr = pDevice->RtCallbacks.pfnSetDisplayModeCb(pDevice->hDevice, &DdiDm);
     3521        Assert(hr == S_OK);
     3522    }
    35153523
    35163524    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette