VirtualBox

Ignore:
Timestamp:
Jul 23, 2015 6:19:30 AM (9 years ago)
Author:
vboxsync
Message:

Host 3D: Display Lists: treat more carefully with contexts when restoring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/expando/expandospu_init.c

    r56922 r57058  
    123123            uint32_t i;
    124124            bool     fSuccess = false;
     125
     126            CRDLMContextState *pCurrentDLMState;
     127            CRContext         *pCurrentCRState;
     128
     129            /* Remember current state. */
     130            pCurrentDLMState = crDLMGetCurrentState();
     131            pCurrentCRState  = crStateGetCurrent();
    125132
    126133            /* Restore number of Expando SPU contexts. */
     
    178185                }
    179186            }
     187
     188            /* Restore original state. */
     189            crDLMSetCurrentState(pCurrentDLMState);
     190            crStateMakeCurrent(pCurrentCRState);
    180191
    181192            if (fSuccess)
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