VirtualBox

Ignore:
Timestamp:
Aug 8, 2014 6:34:02 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
95454
Message:

wddm/crOpenGL: prevent shared objects from being deleted till they can be used

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/VBox

  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_misc.c

    r52328 r52329  
    521521            break;
    522522        case GL_RCUSAGE_TEXTURE_SET_CR:
     523        {
     524            Assert(value);
    523525            crStateSetTextureUsed(value, GL_TRUE);
    524526            break;
     527        }
    525528        case GL_RCUSAGE_TEXTURE_CLEAR_CR:
     529        {
     530            Assert(value);
     531#ifdef DEBUG
     532            {
     533                CRContext *pCurState = crStateGetCurrent();
     534                CRTextureObj *tobj = (CRTextureObj*)crHashtableSearch(pCurState->shared->textureTable, value);
     535                Assert(tobj);
     536            }
     537#endif
    526538            crStateSetTextureUsed(value, GL_FALSE);
    527539            break;
     540        }
    528541        default:
    529542            break;
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