Changeset 45048 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Mar 15, 2013 9:54:00 AM (12 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL/render
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.c
r45041 r45048 668 668 { 669 669 uint32_t i; 670 for (i = 0; i < pEntry->cRects; ++i)670 for (i = 0; i < cRegions; ++i) 671 671 { 672 672 RTRECT DstRect; -
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m
r44922 r45048 1096 1096 - (void)vboxPresentCS 1097 1097 { 1098 NSRect r = [self frame];1099 DEBUG_MSG(("OVIW(%p): rF2V frame: [%i, %i, %i, %i]\n", (void*)self, (int)r.origin.x, (int)r.origin.y, (int)r.size.width, (int)r.size.height));1100 1101 1098 { 1102 1099 if ([m_pSharedGLCtx view] != self) … … 1122 1119 - (void)vboxPresentToViewCS 1123 1120 { 1121 NSRect r = [self frame]; 1122 DEBUG_MSG(("OVIW(%p): rF2V frame: [%i, %i, %i, %i]\n", (void*)self, (int)r.origin.x, (int)r.origin.y, (int)r.size.width, (int)r.size.height)); 1123 1124 1124 #if 1 /* Set to 0 to see the docktile instead of the real output */ 1125 1125 VBOXVR_SCR_COMPOSITOR_ITERATOR CIter; … … 1147 1147 glReadBuffer(GL_COLOR_ATTACHMENT0); 1148 1148 1149 for (i = 0; i < pEntry->cRects; ++i)1149 for (i = 0; i < cRegions; ++i) 1150 1150 { 1151 1151 const RTRECT * pSrcRect = &paSrcRegions[i]; 1152 1152 const RTRECT * pDstRect = &paDstRegions[i]; 1153 GLint srcY1 = r.size.height - pSrcRect->yTop; 1154 GLint srcY2 = r.size.height - pSrcRect->yBottom; 1155 GLint dstY1 = r.size.height - pDstRect->yTop; 1156 GLint dstY2 = r.size.height - pDstRect->yBottom; 1153 1157 1154 glBlitFramebufferEXT(pSrcRect->xLeft, pSrcRect->yTop+ m_RootShift.y,1155 pSrcRect->xRight, pSrcRect->yBottom+ m_RootShift.y,1156 pDstRect->xLeft - m_RootShift.x, pDstRect->yTop,1157 pDstRect->xRight - m_RootShift.x, pDstRect->yBottom,1158 glBlitFramebufferEXT(pSrcRect->xLeft, srcY1 + m_RootShift.y, 1159 pSrcRect->xRight, srcY2 + m_RootShift.y, 1160 pDstRect->xLeft - m_RootShift.x, dstY1, 1161 pDstRect->xRight - m_RootShift.x, dstY2, 1158 1162 GL_COLOR_BUFFER_BIT, GL_LINEAR); 1159 1163 } … … 1282 1286 glReadBuffer(GL_COLOR_ATTACHMENT0); 1283 1287 1284 for (i = 0; i < pEntry->cRects; ++i)1288 for (i = 0; i < cRegions; ++i) 1285 1289 { 1286 1290 const RTRECT * pSrcRect = &paSrcRegions[i]; 1287 1291 const RTRECT * pDstRect = &paDstRegions[i]; 1292 GLint srcY1 = r.size.height - pSrcRect->yTop; 1293 GLint srcY2 = r.size.height - pSrcRect->yBottom; 1294 GLint dstY1 = r.size.height - pDstRect->yTop; 1295 GLint dstY2 = r.size.height - pDstRect->yBottom; 1296 1288 1297 1289 glBlitFramebufferEXT(pSrcRect->xLeft, pSrcRect->yTop+ m_RootShift.y,1290 pSrcRect->xRight, pSrcRect->yBottom+ m_RootShift.y,1291 pDstRect->xLeft * m_FBOThumbScaleX, pDstRect->yTop* m_FBOThumbScaleY,1292 pDstRect->xRight * m_FBOThumbScaleX, pDstRect->yBottom* m_FBOThumbScaleY,1298 glBlitFramebufferEXT(pSrcRect->xLeft, srcY1 + m_RootShift.y, 1299 pSrcRect->xRight, srcY2 + m_RootShift.y, 1300 pDstRect->xLeft * m_FBOThumbScaleX, dstY1 * m_FBOThumbScaleY, 1301 pDstRect->xRight * m_FBOThumbScaleX, dstY2 * m_FBOThumbScaleY, 1293 1302 GL_COLOR_BUFFER_BIT, GL_LINEAR); 1294 1303 }
Note:
See TracChangeset
for help on using the changeset viewer.