VirtualBox

Ignore:
Timestamp:
Jun 28, 2010 9:22:54 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
63171
Message:

crOpenGL: flush original command buffer before injecting commands

File:
1 edited

Legend:

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

    r30440 r30485  
    121121    else
    122122    {
    123         packspuFlush( (void *) thread );
     123        int i;
     124
     125        crLockMutex(&_PackMutex);
     126        /*Make sure we process commands in order they should appear, so flush thread being injected first*/
     127        for (i=0; i<pack_spu.numThreads; ++i)
     128        {
     129            if ((thread != &pack_spu.thread[i]) && pack_spu.thread[i].netServer.conn
     130                && (pack_spu.thread[i].netServer.conn->u32ClientID == thread->netServer.conn->u32InjectClientID))
     131            {
     132                packspuFlush((void *) &pack_spu.thread[i]);
     133                break;
     134            }
     135        }
     136        crUnlockMutex(&_PackMutex);
     137
     138        packspuFlush((void *) thread);
    124139    }
    125140}
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