VirtualBox

Ignore:
Timestamp:
Jan 20, 2012 9:32:29 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
75809
Message:

crOpenGL: work around Ubuntu 11.04 FBO issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_context.c

    r39265 r39815  
    231231{
    232232    CRMuralInfo *mural, *oldMural;
    233     CRContext *ctx;
     233    CRContext *ctx, *oldCtx;
    234234
    235235    if (context >= 0 && window >= 0) {
     
    267267        return;
    268268    }
     269
     270    /* Ubuntu 11.04 hosts misbehave if context window switch is
     271     * done with non-default framebuffer object settings.
     272     * crStateSwichPrepare & crStateSwichPostprocess are supposed to work around this problem
     273     * crStateSwichPrepare restores the FBO state to its default values before the context window switch,
     274     * while crStateSwichPostprocess restores it back to the original values */
     275    oldCtx = crStateSwichPrepare(ctx);
    269276
    270277    /*
     
    326333    crStateMakeCurrent( ctx );
    327334
     335    crStateSwichPostprocess(oldCtx);
     336
    328337    if (oldMural != mural && crServerSupportRedirMuralFBO())
    329338    {
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