VirtualBox

Ignore:
Timestamp:
Apr 8, 2013 1:00:36 PM (12 years ago)
Author:
vboxsync
Message:

wddm/3d: cmd API only 3D contexts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispCm.cpp

    r44529 r45403  
    207207
    208208    pCmd->EscapeHdr.escapeCode = VBOXESC_GETVBOXVIDEOCMCMD;
     209
     210    PVBOXWDDMDISP_CONTEXT pContext = NULL, pCurCtx;
     211
    209212    /* lock to ensure the context is not destroyed */
    210213    EnterCriticalSection(&pSession->CritSect);
    211214    /* use any context for identifying the kernel CmSession. We're using the first one */
    212     PVBOXWDDMDISP_CONTEXT pContext = RTListGetFirst(&pSession->CtxList, VBOXWDDMDISP_CONTEXT, ListNode);
     215    RTListForEach(&pSession->CtxList, pCurCtx, VBOXWDDMDISP_CONTEXT, ListNode)
     216    {
     217        PVBOXWDDMDISP_DEVICE pDevice = pCurCtx->pDevice;
     218        if (VBOXDISPMODE_IS_3D(pDevice->pAdapter))
     219        {
     220            pContext = pCurCtx;
     221            break;
     222        }
     223    }
    213224    if (pContext)
    214225    {
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