VirtualBox

Changeset 33989 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Nov 11, 2010 1:12:58 PM (14 years ago)
Author:
vboxsync
Message:

crOpenGL: those ain't continuous arrays

File:
1 edited

Legend:

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

    r33988 r33989  
    117117
    118118    /* Destroy any windows created by the client */
    119     for (pos = 0; pos<CR_MAX_WINDOWS && client->windowList[pos]; pos++)
    120     {
    121         cr_server.dispatch.WindowDestroy(client->windowList[pos]);
     119    for (pos = 0; pos<CR_MAX_WINDOWS; pos++)
     120    {
     121        if (client->windowList[pos])
     122        {
     123            cr_server.dispatch.WindowDestroy(client->windowList[pos]);
     124        }
    122125    }
    123126
    124127    /* Check if we have context(s) made by this client left, could happen if client side code is lazy */
    125     for (pos = 0; pos<CR_MAX_CONTEXTS && client->contextList[pos]; pos++)
    126     {
    127         cr_server.dispatch.DestroyContext(client->contextList[pos]);
     128    for (pos = 0; pos<CR_MAX_CONTEXTS; pos++)
     129    {
     130        if (client->contextList[pos])
     131        {
     132            cr_server.dispatch.DestroyContext(client->contextList[pos]);
     133        }
    128134    }
    129135
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