VirtualBox

Changeset 81022 in vbox


Ignore:
Timestamp:
Sep 26, 2019 2:28:27 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133624
Message:

Devices/Graphics: use correct context when waiting on a shared resource, fixes flickering

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp

    r79681 r81022  
    13251325    D3D_RELEASE(pSurface->pQuery);
    13261326
     1327    /* Use the context where the texture has been created. */
     1328    int rc = vmsvga3dContextFromCid(pState, pSurface->idAssociatedContext, &pContext);
     1329    AssertRCReturn(rc, rc);
     1330
    13271331    HRESULT hr = pContext->pDevice->CreateQuery(D3DQUERYTYPE_EVENT, &pSurface->pQuery);
    13281332    AssertMsgReturn(hr == D3D_OK, ("vmsvga3dSurfaceTrackUsage: CreateQuery failed with %x\n", hr), VERR_INTERNAL_ERROR);
Note: See TracChangeset for help on using the changeset viewer.

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