VirtualBox

Changeset 23657 in vbox


Ignore:
Timestamp:
Oct 9, 2009 5:21:16 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53370
Message:

video 2d accel: workaround ATI linux issue: ensure viewport is correct on gl widget show/resize

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxFBOverlay.h

    r23646 r23657  
    9191
    9292#define VBOXQGLLOG_METHODTIME(_m) VBoxVHWADbgTimeCounter _dbgTimeCounter(_m)
     93
     94#define VBOXQG_CHECKCONTEXT() \
     95        { \
     96            const GLubyte * str; \
     97            VBOXQGL_CHECKERR(   \
     98                    str = glGetString(GL_VERSION); \
     99            ); \
     100            Assert(str); \
     101            if(str) \
     102            { \
     103                Assert(str[0]); \
     104            } \
     105        }
    93106#else
    94107#define VBOXQGLLOG_METHODTIME(_m)
     108#define VBOXQG_CHECKCONTEXT() do{}while(0)
    95109#endif
    96110
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp

    r23646 r23657  
    55735573
    55745574        vboxShowOverlay(true);
     5575
     5576        /* workaround for linux ATI issue: need to update gl viewport after widget becomes visible */
     5577        mpOverlayWidget->vboxDoUpdateViewport(overVp);
    55755578    }
    55765579}
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