Changeset 45009 in vbox for trunk/src/VBox/GuestHost/OpenGL/util/blitter.cpp
- Timestamp:
- Mar 12, 2013 5:27:04 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/util/blitter.cpp
r44997 r45009 92 92 const RTRECT * pSrcRect = &paSrcRect[i]; 93 93 const RTRECT * pDstRect = &paDstRect[i]; 94 pBlitter->pDispatch->BlitFramebufferEXT( 95 pSrcRect->xLeft, pSrcRect->yTop, pSrcRect->xRight, pSrcRect->yBottom, 96 pDstRect->xLeft, pDstRect->yTop, pDstRect->xRight, pDstRect->yBottom, 97 GL_COLOR_BUFFER_BIT, filter); 94 if (CRBLT_F_OFFSCREEN & fFlags) 95 { 96 pBlitter->pDispatch->BlitFramebufferEXT( 97 pSrcRect->xLeft, pSrcRect->yTop, pSrcRect->xRight, pSrcRect->yBottom, 98 pDstRect->xLeft, pDstRect->yTop, pDstRect->xRight, pDstRect->yBottom, 99 GL_COLOR_BUFFER_BIT, filter); 100 } 101 else 102 { 103 pBlitter->pDispatch->BlitFramebufferEXT( 104 pSrcRect->xLeft, pSrc->height - pSrcRect->yTop, pSrcRect->xRight, pSrc->height - pSrcRect->yBottom, 105 pDstRect->xLeft, pDstSize->cy - pDstRect->yTop, pDstRect->xRight, pDstSize->cy - pDstRect->yBottom, 106 GL_COLOR_BUFFER_BIT, filter); 107 } 98 108 } 99 109 … … 488 498 crBltCheckSetupViewport(pBlitter, pDstSize, enmDstBuff == GL_DRAW_FRAMEBUFFER); 489 499 490 pBlitter->pfnBlt(pBlitter, pSrc, paSrcRects, pDstSize, paDstRects, cRects, fFlags );500 pBlitter->pfnBlt(pBlitter, pSrc, paSrcRects, pDstSize, paDstRects, cRects, fFlags & CRBLT_F_OFFSCREEN); 491 501 } 492 502 … … 497 507 pBlitter->pDispatch->BindFramebufferEXT(GL_DRAW_FRAMEBUFFER, 0); 498 508 499 crBltBlitTexBuf(pBlitter, pSrc, paSrcRects, GL_BACK, &DstSize, paDstRects, cRects, fFlags );509 crBltBlitTexBuf(pBlitter, pSrc, paSrcRects, GL_BACK, &DstSize, paDstRects, cRects, fFlags & (~CRBLT_F_OFFSCREEN)); 500 510 } 501 511
Note:
See TracChangeset
for help on using the changeset viewer.