VirtualBox

Changeset 32527 in vbox


Ignore:
Timestamp:
Sep 15, 2010 3:14:37 PM (14 years ago)
Author:
vboxsync
Message:

crOpenGL: compile warning fix and add debug warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/wgl.c

    r32526 r32527  
    167167    window = stubGetWindowInfo(hdc);
    168168
     169    if (hglrc!=0 && !context)
     170    {
     171        crWarning("wglMakeCurrent got unexpected hglrc 0x%x", hglrc);
     172    }
     173
    169174    return stubMakeCurrent( window, context );
    170175}
     
    172177HGLRC WINAPI wglGetCurrentContext_prox( void )
    173178{
    174     return (HGLRC) stub.currentContext ? stub.currentContext->id : 0;
     179    return (HGLRC) (stub.currentContext ? stub.currentContext->id : 0);
    175180}
    176181
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