VirtualBox

Changeset 22417 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Aug 24, 2009 2:44:39 PM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: add few debug messages

File:
1 edited

Legend:

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

    r20398 r22417  
    7979void APIENTRY DrvReleaseContext(HGLRC hglrc)
    8080{
    81     /*crDebug( "DrvReleaseContext(%x) called", hglrc );*/
     81    /*crDebug( "DrvReleaseContext(0x%x) called", hglrc );*/
    8282    stubMakeCurrent( NULL, NULL );
    8383}
     
    101101    WindowInfo *window;
    102102
    103     /*crDebug( "DrvSetContext called(%x, %x)", hdc, hglrc );*/
     103    /*crDebug( "DrvSetContext called(0x%x, 0x%x)", hdc, hglrc );*/
    104104    (void) (callback);
    105105
     
    117117BOOL APIENTRY DrvSetPixelFormat(HDC hdc, int iPixelFormat)
    118118{
    119     crDebug( "DrvSetPixelFormat called.\n" );
     119    crDebug( "DrvSetPixelFormat(0x%x, %i) called.", hdc, iPixelFormat );
    120120
    121121    if ( (iPixelFormat<1) || (iPixelFormat>2) ) {
    122         crError( "wglSetPixelFormat: iPixelFormat=%d?\n", iPixelFormat );
     122        crError( "wglSetPixelFormat: iPixelFormat=%d?", iPixelFormat );
    123123    }
    124124
     
    131131    ContextInfo *context;
    132132
    133     crDebug( "DrvCreateContext called.\n" );
     133    crDebug( "DrvCreateContext(0x%x) called.", hdc);
    134134
    135135    stubInit();
     
    150150HGLRC APIENTRY DrvCreateLayerContext(HDC hdc, int iLayerPlane)
    151151{
     152    crDebug( "DrvCreateLayerContext(0x%x, %i) called.", hdc, iLayerPlane);
    152153    //We don't support more than 1 layers.
    153154    if (iLayerPlane == 0) {
     
    185186
    186187    if ( nBytes != sizeof(*pfd) ) {
    187         crWarning( "DrvDescribePixelFormat: nBytes=%u?\n", nBytes );
     188        crWarning( "DrvDescribePixelFormat: nBytes=%u?", nBytes );
    188189        return 2;
    189190    }
     
    260261BOOL APIENTRY DrvDeleteContext(HGLRC hglrc)
    261262{
     263    crDebug( "DrvDeleteContext(0x%x) called", hglrc );
    262264    stubDestroyContext( (unsigned long) hglrc );
    263265    return 1;
     
    273275{
    274276    crWarning( "DrvShareLists: unsupported" );
    275     return 0;
     277    return 1;
    276278}
    277279
     
    309311{
    310312    const WindowInfo *window;
    311     //crDebug( "DrvSwapBuffers(%x) called", hdc );
     313    /*crDebug( "DrvSwapBuffers(0x%x) called", hdc );*/
    312314    window = stubGetWindowInfo(hdc);   
    313315    stubSwapBuffers( window, 0 );
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