VirtualBox

Changeset 56943 in vbox


Ignore:
Timestamp:
Jul 15, 2015 5:45:54 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
101650
Message:

Host 3D: Display Lists: fix crash: only add glListBase() to cache if we are currently recording a list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/dlm/dlm_lists.c

    r56942 r56943  
    386386void DLM_APIENTRY crDLMListBase(GLuint base, SPUDispatchTable *dispatchTable)
    387387{
    388     CRDLMContextState *listState = CURRENT_STATE();
     388    CRDLMContextState *pListState = CURRENT_STATE();
    389389
    390390    crDebug("DLM: ListBase(%u).", base);
    391391
    392     if (listState)
    393     {
    394         listState->listBase = base;
    395         crDLMCompileListBase(base);
     392    if (pListState)
     393    {
     394        pListState->listBase = base;
     395
     396        /* Only add to cache if we are currently recording a list. */
     397        /* TODO: Do we really need to chache it? */
     398        if (pListState->currentListInfo)
     399            crDLMCompileListBase(base);
     400
    396401        dispatchTable->ListBase(base);
    397402    }
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