VirtualBox

Changeset 3427 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Jul 4, 2007 4:55:11 PM (18 years ago)
Author:
vboxsync
Message:

DrvDescribePixelFormat fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/OpenGL/OGLComplexSync.cpp

    r3419 r3427  
    122122{
    123123    /* if ppfd == NULL, then DrvDescribelayerPlane returns the maximum nr of supported pixel formats */
    124     VBOX_OGL_GEN_SYNC_OP4_PASS_PTR_RET(int, DrvDescribePixelFormat, hdc, iPixelFormat, nBytes, nBytes, ppfd);
    125     return retval;
     124    if (ppfd)
     125    {
     126        VBOX_OGL_GEN_SYNC_OP4_PASS_PTR_RET(int, DrvDescribePixelFormat, hdc, iPixelFormat, nBytes, nBytes, ppfd);
     127        return retval;
     128    }
     129    else
     130    {
     131        VBOX_OGL_GEN_SYNC_OP4_RET(int, DrvDescribePixelFormat, hdc, iPixelFormat, nBytes, ppfd);
     132        return retval;
     133    }
    126134}
    127135
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