- Timestamp:
- Jul 20, 2018 9:52:10 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 123891
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp
r73283 r73284 88 88 #define D3D_TO_OGL_Y_COORD_MIPLEVEL(ptrMipLevel, y_coordinate) (ptrMipLevel->size.height - (y_coordinate)) 89 89 90 //#define MANUAL_FLIP_SURFACE_DATA91 90 /* Enable to render the result of DrawPrimitive in a seperate window. */ 92 91 //#define DEBUG_GFX_WINDOW … … 2202 2201 2203 2202 pState->ext.glBlitFramebuffer(pSrcBox->x, 2204 #ifdef MANUAL_FLIP_SURFACE_DATA2205 D3D_TO_OGL_Y_COORD(pSrcSurface, pSrcBox->y + pSrcBox->h), /* inclusive */2206 #else2207 2203 pSrcBox->y, 2208 #endif2209 2204 pSrcBox->x + pSrcBox->w, /* exclusive. */ 2210 #ifdef MANUAL_FLIP_SURFACE_DATA2211 D3D_TO_OGL_Y_COORD(pSrcSurface, pSrcBox->y), /* exclusive */2212 #else2213 2205 pSrcBox->y + pSrcBox->h, 2214 #endif2215 2206 pDstBox->x, 2216 #ifdef MANUAL_FLIP_SURFACE_DATA2217 D3D_TO_OGL_Y_COORD(pDstSurface, pDstBox->y + pDstBox->h), /* inclusive. */2218 #else2219 2207 pDstBox->y, 2220 #endif2221 2208 pDstBox->x + pDstBox->w, /* exclusive. */ 2222 #ifdef MANUAL_FLIP_SURFACE_DATA2223 D3D_TO_OGL_Y_COORD(pDstSurface, pDstBox->y), /* exclusive */2224 #else2225 2209 pDstBox->y + pDstBox->h, 2226 #endif2227 2210 GL_COLOR_BUFFER_BIT, 2228 2211 (enmMode == SVGA3D_STRETCH_BLT_POINT) ? GL_NEAREST : GL_LINEAR); … … 2415 2398 offHst = pBox->x * pSurface->cbBlock + pBox->y * pMipLevel->cbSurfacePitch; 2416 2399 cbSurfacePitch = pMipLevel->cbSurfacePitch; 2417 2418 #ifdef MANUAL_FLIP_SURFACE_DATA2419 pBufferStart = pDoubleBuffer2420 + pBox->x * pSurface->cbBlock2421 + pMipLevel->cbSurface - pBox->y * cbSurfacePitch2422 - cbSurfacePitch; /* flip image during copy */2423 #else2424 #endif2425 2400 } 2426 2401 else … … 2429 2404 offHst = 0; 2430 2405 cbSurfacePitch = pBox->w * pSurface->cbBlock; 2431 #ifdef MANUAL_FLIP_SURFACE_DATA2432 pBufferStart = pDoubleBuffer + cbSurfacePitch * pBox->h - cbSurfacePitch; /* flip image during copy */2433 #else2434 #endif2435 2406 } 2436 2407 … … 2442 2413 pMipLevel->cbSurface, 2443 2414 offHst, 2444 #ifdef MANUAL_FLIP_SURFACE_DATA2445 -(int32_t)cbSurfacePitch,2446 #else2447 2415 cbSurfacePitch, 2448 #endif2449 2416 GuestPtr, 2450 2417 offGst,
Note:
See TracChangeset
for help on using the changeset viewer.