VirtualBox

Changeset 46085 in vbox for trunk/src/VBox/GuestHost


Ignore:
Timestamp:
May 15, 2013 5:12:08 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
85761
Message:

crOpenGL: some blitter fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/util/blitter.cpp

    r45526 r46085  
    100100    else
    101101    {
     102        if (CrBltIsEntered(pBlitter))
     103        {
     104            crWarning("can not set null mural for entered bleater");
     105            return VERR_INVALID_STATE;
     106        }
    102107        if (!pBlitter->CurrentMural.Base.id)
    103108            return VINF_SUCCESS;
     
    117122    pBlitter->pDispatch->Flush();
    118123
    119     if (pMural)
    120         pBlitter->pDispatch->MakeCurrent(pMural->Base.id, pBlitter->i32MakeCurrentUserData, pBlitter->CtxInfo.Base.id);
    121     else
    122         pBlitter->pDispatch->MakeCurrent(0, 0, 0);
     124    pBlitter->pDispatch->MakeCurrent(pMural->Base.id, pBlitter->i32MakeCurrentUserData, pBlitter->CtxInfo.Base.id);
    123125
    124126    return VINF_SUCCESS;
     
    555557    if (pBlitter->CurrentMural.Base.id) /* <- pBlitter->CurrentMural.Base.id can be null if the blitter is in a "no-context" mode (see comments to BltInit for detail)*/
    556558    {
    557         pBlitter->pDispatch->Flush();
     559        if (pRestoreCtxInfo)
     560            pBlitter->pDispatch->Flush();
    558561        pBlitter->pDispatch->MakeCurrent(pBlitter->CurrentMural.Base.id, pBlitter->i32MakeCurrentUserData, pBlitter->CtxInfo.Base.id);
    559562    }
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