VirtualBox

Changeset 33509 in vbox for trunk


Ignore:
Timestamp:
Oct 27, 2010 1:44:50 PM (14 years ago)
Author:
vboxsync
Message:

crOpenGL: change assert to warning

File:
1 edited

Legend:

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

    r29134 r33509  
    187187    if (context >= 0 && window >= 0) {
    188188        mural = (CRMuralInfo *) crHashtableSearch(cr_server.muralTable, window);
    189         if (!mural && window == MAGIC_OFFSET &&
    190                 !cr_server.clients[0]->conn->actual_network) {
    191             /* We're reading from a file and not a real network connection so
    192              * we have to fudge the window id here.
    193              */
    194             window = 0;
    195             mural = (CRMuralInfo *) crHashtableSearch(cr_server.muralTable, 0);
    196         }
    197         CRASSERT(mural);
     189        if (!mural)
     190        {
     191            crWarning("CRServer: invalid window %d passed to crServerDispatchMakeCurrent()");
     192            return;
     193        }
    198194
    199195        /* Update the state tracker's current context */
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