VirtualBox

Changeset 30011 in vbox for trunk


Ignore:
Timestamp:
Jun 3, 2010 1:27:41 PM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: fix host assertion for some guest mt apps (#5236)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_window.c

    r29198 r30011  
    121121{
    122122    CRMuralInfo *mural;
     123    int32_t client;
    123124    int pos;
    124125
     
    127128         crWarning("CRServer: invalid window %d passed to WindowDestroy()", window);
    128129         return;
     130    }
     131
     132    if (cr_server.currentWindow == window)
     133    {
     134        cr_server.currentWindow = -1;
     135        crServerRedirMuralFBO(mural, GL_FALSE);
     136        crServerDeleteMuralFBO(mural);
    129137    }
    130138
     
    150158        if (CR_MAX_WINDOWS==pos)
    151159        {
    152             int32_t client;
    153 
    154160            for (client=0; client<cr_server.numClients; ++client)
    155161            {
     
    179185    }
    180186
    181     if (cr_server.currentWindow == window)
    182     {
    183         cr_server.currentWindow = -1;
    184         crServerRedirMuralFBO(mural, GL_FALSE);
    185         crServerDeleteMuralFBO(mural);
     187    /*Make sure this window isn't active in other clients*/
     188    for (client=0; client<cr_server.numClients; ++client)
     189    {
     190        if (cr_server.clients[client]->currentMural == mural)
     191        {
     192            cr_server.clients[client]->currentMural = NULL;
     193            cr_server.clients[client]->currentWindow = -1;
     194        }
    186195    }
    187196
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