VirtualBox

Changeset 62165 in vbox for trunk/src/VBox/GuestHost


Ignore:
Timestamp:
Jul 11, 2016 4:24:07 PM (9 years ago)
Author:
vboxsync
Message:

SharedOpenGL/spuload: don't continue if loading the super SPU failed, see bugref:8485

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/spu_loader/spuload.c

    r52437 r62165  
    109109        }
    110110
     111        bool fNeedSuperSPU = false;
    111112        /* This basically calls the SPU's SPULoad() function */
    112113        if (!the_spu->entry_point( &(the_spu->name), &(the_spu->super_name),
     
    129130                }
    130131                the_spu->superSPU = crSPULoad( child, id, the_spu->super_name, dir, server );
     132                fNeedSuperSPU = true;
    131133        }
    132134#else
     
    139141                }
    140142                the_spu->superSPU = crSPULoad( child, id, the_spu->super_name, dir, server );
     143                fNeedSuperSPU = true;
    141144        }
    142145#endif
     
    144147        {
    145148                the_spu->superSPU = NULL;
     149        }
     150        if (fNeedSuperSPU && !the_spu->superSPU)
     151        {
     152                crError( "Unable to load super SPU \"%s\" of \"%s\"!", the_spu->super_name, name );
     153                crSPUUnloadChain(the_spu);
     154                return NULL;
    146155        }
    147156        crDebug("Initializing %s SPU", name);
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