VirtualBox

Ignore:
Timestamp:
Aug 1, 2012 4:54:38 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79683
Message:

crOpenGL/wddm: context-connection and other fixes

File:
1 edited

Legend:

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

    r42499 r42518  
    160160    if (CRPACKSPU_IS_WDDM_CRHGSMI())
    161161    {
    162         ThreadInfo *thread;
    163         CRPackContext * curPacker = crPackGetContext();
    164         if (!con)
    165         {
    166             crError("connection expected!!");
     162        GET_THREAD(thread);
     163        if (con)
     164        {
     165            CRPackContext * curPacker = crPackGetContext();
     166            CRASSERT(!thread || !thread->bInjectThread);
     167            thread = GET_THREAD_VAL_ID(con);
     168            crPackSetContext(thread->packer);
     169            crPackWindowDestroy(window);
     170            if (curPacker != thread->packer)
     171                crPackSetContext(curPacker);
    167172            return;
    168173        }
    169         thread = GET_THREAD_VAL_ID(con);
    170         crPackSetContext(thread->packer);
    171         crPackWindowDestroy(window);
    172         if (curPacker != thread->packer)
    173             crPackSetContext(curPacker);
    174         return;
     174        CRASSERT(thread);
     175        CRASSERT(thread->bInjectThread);
    175176    }
    176177    crPackWindowDestroy(window);
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