VirtualBox

Ignore:
Timestamp:
Mar 27, 2013 10:23:49 AM (12 years ago)
Author:
vboxsync
Message:

crOpenGL: basics for BlitFramebuffer driver bugs work around

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.c

    r45148 r45201  
    683683                DstRect.xRight = paDstRegions[i].xRight * scaleX;
    684684                DstRect.yBottom = paDstRegions[i].yBottom * scaleY;
    685                 CrBltBlitTexMural(pBlitter, &pEntry->Tex, &paSrcRegions[i], &DstRect, 1, CRBLT_F_LINEAR);
     685                CrBltBlitTexMural(pBlitter, &pEntry->Tex, &paSrcRegions[i], &DstRect, 1, CRBLT_F_LINEAR | CRBLT_F_INVERT_YCOORDS);
    686686            }
    687687        }
     
    705705        if (RT_SUCCESS(rc))
    706706        {
    707             CrBltBlitTexMural(pBlitter, &pEntry->Tex, paSrcRegions, paDstRegions, cRegions, CRBLT_F_LINEAR);
     707            CrBltBlitTexMural(pBlitter, &pEntry->Tex, paSrcRegions, paDstRegions, cRegions, CRBLT_F_LINEAR | CRBLT_F_INVERT_YCOORDS);
    708708        }
    709709        else
     
    721721    if (render_spu.blitterTable)
    722722    {
    723         CR_BLITTER_WINDOW * pBltInfo = CrBltMuralGetCurrent(window->pBlitter);
    724         if (pBltInfo == &window->BltInfo)
     723        const CR_BLITTER_WINDOW * pBltInfo = CrBltMuralGetCurrentInfo(window->pBlitter);
     724        if (pBltInfo->Base.id == window->BltInfo.Base.id)
    725725        {
    726726            CrBltMuralSetCurrent(window->pBlitter, NULL);
     
    729729    else
    730730    {
    731         CRASSERT(CrBltMuralGetCurrent(window->pBlitter) == &window->BltInfo);
     731        CRASSERT(CrBltMuralGetCurrentInfo(window->pBlitter)->Base.id == window->BltInfo.Base.id);
    732732        CrBltMuralSetCurrent(window->pBlitter, NULL);
    733733        CrBltTerm(window->pBlitter);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette