VirtualBox

Ignore:
Timestamp:
Nov 30, 2022 6:19:24 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154782
Message:

WDDM: always call pfnSetErrorCb. bugref:9845

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dx/VBoxDX.h

    r96887 r97721  
    533533DECLINLINE(void) vboxDXDeviceSetError(PVBOXDX_DEVICE pDevice, HRESULT hr)
    534534{
    535     if (FAILED(hr))
    536     {
    537         AssertFailed();
    538         pDevice->pUMCallbacks->pfnSetErrorCb(pDevice->hRTCoreLayer, hr);
    539     }
     535    Assert(SUCCEEDED(hr) || hr == DXGI_DDI_ERR_WASSTILLDRAWING);
     536    /* This callback is also used for setting S_OK, etc results, so always call it. */
     537    pDevice->pUMCallbacks->pfnSetErrorCb(pDevice->hRTCoreLayer, hr);
    540538}
    541539
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