VirtualBox

Ignore:
Timestamp:
Aug 23, 2011 4:26:21 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
73623
Message:

crOpenGL: fix incorrect rendering when switching to/from fullscreen with enabled 2d accel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserver/crservice.cpp

    r37433 r38505  
    13531353                {
    13541354                    CHECK_ERROR_RET(pFramebuffer, COMGETTER(WinId)(&winId), rc);
    1355                     CHECK_ERROR_RET(pFramebuffer, COMGETTER(Width)(&w), rc);
    1356                     CHECK_ERROR_RET(pFramebuffer, COMGETTER(Height)(&h), rc);
    1357 
    1358                     rc = crVBoxServerMapScreen(screenId, xo, yo, w, h, winId);
    1359                     AssertRCReturn(rc, rc);
     1355
     1356                    if (!winId)
     1357                    {
     1358                        /* View associated with framebuffer is destroyed, happens with 2d accel enabled */
     1359                        rc = crVBoxServerUnmapScreen(screenId);
     1360                        AssertRCReturn(rc, rc);
     1361                    }
     1362                    else
     1363                    {
     1364                        CHECK_ERROR_RET(pFramebuffer, COMGETTER(Width)(&w), rc);
     1365                        CHECK_ERROR_RET(pFramebuffer, COMGETTER(Height)(&h), rc);
     1366
     1367                        rc = crVBoxServerMapScreen(screenId, xo, yo, w, h, winId);
     1368                        AssertRCReturn(rc, rc);
     1369                    }
    13601370                }
    13611371
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