VirtualBox

Ignore:
Timestamp:
Aug 2, 2012 11:32:51 AM (12 years ago)
Author:
vboxsync
Message:

crOpenGL: context-connection: avoid unnecessary connection on packer init

File:
1 edited

Legend:

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

    r42499 r42528  
    5151#endif
    5252
    53     /* This connects to the server, sets up the packer, etc. */
    54     thread = packspuNewThread(
     53    if (!CRPACKSPU_IS_WDDM_CRHGSMI())
     54    {
     55        /* This connects to the server, sets up the packer, etc. */
     56        thread = packspuNewThread(
    5557#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
    5658            NULL
    5759#endif
    58              );
     60                 );
    5961
    60     if (!thread) {
    61         return NULL;
     62        if (!thread) {
     63            return NULL;
     64        }
     65        CRASSERT( thread == &(pack_spu.thread[0]) );
     66        pack_spu.idxThreadInUse = 0;
    6267    }
    63     CRASSERT( thread == &(pack_spu.thread[0]) );
    64     pack_spu.idxThreadInUse = 0;
    6568
    6669    packspuCreateFunctions();
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette