VirtualBox

Changeset 73284 in vbox for trunk


Ignore:
Timestamp:
Jul 20, 2018 9:52:10 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123891
Message:

DevVGA-SVGA3d-ogl: removed never used MANUAL_FLIP_SURFACE_DATA code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp

    r73283 r73284  
    8888#define D3D_TO_OGL_Y_COORD_MIPLEVEL(ptrMipLevel, y_coordinate)      (ptrMipLevel->size.height - (y_coordinate))
    8989
    90 //#define MANUAL_FLIP_SURFACE_DATA
    9190/* Enable to render the result of DrawPrimitive in a seperate window. */
    9291//#define DEBUG_GFX_WINDOW
     
    22022201
    22032202    pState->ext.glBlitFramebuffer(pSrcBox->x,
    2204 #ifdef MANUAL_FLIP_SURFACE_DATA
    2205                                   D3D_TO_OGL_Y_COORD(pSrcSurface, pSrcBox->y + pSrcBox->h), /* inclusive */
    2206 #else
    22072203                                  pSrcBox->y,
    2208 #endif
    22092204                                  pSrcBox->x + pSrcBox->w,                                  /* exclusive. */
    2210 #ifdef MANUAL_FLIP_SURFACE_DATA
    2211                                   D3D_TO_OGL_Y_COORD(pSrcSurface, pSrcBox->y),              /* exclusive */
    2212 #else
    22132205                                  pSrcBox->y + pSrcBox->h,
    2214 #endif
    22152206                                  pDstBox->x,
    2216 #ifdef MANUAL_FLIP_SURFACE_DATA
    2217                                   D3D_TO_OGL_Y_COORD(pDstSurface, pDstBox->y + pDstBox->h), /* inclusive. */
    2218 #else
    22192207                                  pDstBox->y,
    2220 #endif
    22212208                                  pDstBox->x + pDstBox->w,                                  /* exclusive. */
    2222 #ifdef MANUAL_FLIP_SURFACE_DATA
    2223                                   D3D_TO_OGL_Y_COORD(pDstSurface, pDstBox->y),              /* exclusive */
    2224 #else
    22252209                                  pDstBox->y + pDstBox->h,
    2226 #endif
    22272210                                  GL_COLOR_BUFFER_BIT,
    22282211                                  (enmMode == SVGA3D_STRETCH_BLT_POINT) ? GL_NEAREST : GL_LINEAR);
     
    24152398            offHst = pBox->x * pSurface->cbBlock + pBox->y * pMipLevel->cbSurfacePitch;
    24162399            cbSurfacePitch = pMipLevel->cbSurfacePitch;
    2417 
    2418 #ifdef MANUAL_FLIP_SURFACE_DATA
    2419             pBufferStart =   pDoubleBuffer
    2420                            + pBox->x * pSurface->cbBlock
    2421                            + pMipLevel->cbSurface - pBox->y * cbSurfacePitch
    2422                            - cbSurfacePitch;      /* flip image during copy */
    2423 #else
    2424 #endif
    24252400        }
    24262401        else
     
    24292404            offHst = 0;
    24302405            cbSurfacePitch = pBox->w * pSurface->cbBlock;
    2431 #ifdef MANUAL_FLIP_SURFACE_DATA
    2432             pBufferStart = pDoubleBuffer + cbSurfacePitch * pBox->h - cbSurfacePitch;      /* flip image during copy */
    2433 #else
    2434 #endif
    24352406        }
    24362407
     
    24422413                               pMipLevel->cbSurface,
    24432414                               offHst,
    2444 #ifdef MANUAL_FLIP_SURFACE_DATA
    2445                                -(int32_t)cbSurfacePitch,
    2446 #else
    24472415                               cbSurfacePitch,
    2448 #endif
    24492416                               GuestPtr,
    24502417                               offGst,
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