VirtualBox

Ignore:
Timestamp:
Jul 4, 2013 6:08:11 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
86974
Message:

wddm/crOpenGL: some bugfixes, more TexPresent fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_init.c

    r46395 r46966  
    112112{
    113113    s->refCount--;
     114    Assert(s->refCount >= 0);
    114115    if (s->refCount <= 0) {
    115116        if (s==gSharedState)
     
    125126    }
    126127#ifndef IN_GUEST
    127     else
     128    else if (pContext)
    128129    {
    129130        /* evaluate usage bits*/
     
    137138    }
    138139#endif
     140}
     141
     142DECLEXPORT(CRSharedState *) crStateGlobalSharedAcquire()
     143{
     144    if (!gSharedState)
     145    {
     146        crWarning("No Global Shared State!");
     147        return NULL;
     148    }
     149    gSharedState->refCount++;
     150    return gSharedState;
     151}
     152
     153DECLEXPORT(void) crStateGlobalSharedRelease()
     154{
     155    crStateFreeShared(NULL, gSharedState);
    139156}
    140157
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