VirtualBox

Ignore:
Timestamp:
Jan 14, 2013 9:49:11 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83199
Message:

crOpenGL: saved state fixes & improvements

Location:
trunk/src/VBox/HostServices/SharedOpenGL/render
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.c

    r43748 r44290  
    177177    CRASSERT(ctx);
    178178
     179    if (ctx == 0)
     180    {
     181        crWarning("request to destroy a default context, ignoring");
     182        return;
     183    }
     184
    179185    context = (ContextInfo *) crHashtableSearch(render_spu.contextTable, ctx);
    180186    CRASSERT(context);
     
    352358    {
    353359        renderspuMakeCurrent(0, 0, pCtx->id);
     360        pCtx->currentWindow=0;
    354361    }
    355362}
     
    362369
    363370    CRASSERT(win >= 0);
     371    if (win == 0)
     372    {
     373        crWarning("request to destroy a default mural, ignoring");
     374        return;
     375    }
    364376    window = (WindowInfo *) crHashtableSearch(render_spu.windowTable, win);
    365377    if (window) {
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_wgl.c

    r43285 r44290  
    12541254    }
    12551255
    1256     sharedContext->currentWindow = window;
    1257 
    12581256    return GL_TRUE;
    12591257}
Note: See TracChangeset for help on using the changeset viewer.

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