VirtualBox

Changeset 39815 in vbox for trunk/src/VBox/HostServices


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

Location:
trunk/src/VBox/HostServices/SharedOpenGL
Files:
2 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    {
  • trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack.py

    r21781 r39815  
    227227    for (i = 0 ; i < num_opcodes ; i++)
    228228    {
     229   
     230        CRDBGPTR_CHECKZ(writeback_ptr);
     231        CRDBGPTR_CHECKZ(return_ptr);
     232   
    229233        /*crDebug(\"Unpacking opcode \%d\", *unpack_opcodes);*/
    230234        switch( *unpack_opcodes )
     
    263267                break;
    264268        }
     269       
     270        CRDBGPTR_CHECKZ(writeback_ptr);
     271        CRDBGPTR_CHECKZ(return_ptr);
     272       
    265273        unpack_opcodes--;
    266274    }
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