Changeset 46085 in vbox for trunk/src/VBox/GuestHost
- Timestamp:
- May 15, 2013 5:12:08 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 85761
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/util/blitter.cpp
r45526 r46085 100 100 else 101 101 { 102 if (CrBltIsEntered(pBlitter)) 103 { 104 crWarning("can not set null mural for entered bleater"); 105 return VERR_INVALID_STATE; 106 } 102 107 if (!pBlitter->CurrentMural.Base.id) 103 108 return VINF_SUCCESS; … … 117 122 pBlitter->pDispatch->Flush(); 118 123 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); 123 125 124 126 return VINF_SUCCESS; … … 555 557 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)*/ 556 558 { 557 pBlitter->pDispatch->Flush(); 559 if (pRestoreCtxInfo) 560 pBlitter->pDispatch->Flush(); 558 561 pBlitter->pDispatch->MakeCurrent(pBlitter->CurrentMural.Base.id, pBlitter->i32MakeCurrentUserData, pBlitter->CtxInfo.Base.id); 559 562 }
Note:
See TracChangeset
for help on using the changeset viewer.