Changeset 5394 for trunk/src/opengl/mesa


Ignore:
Timestamp:
Mar 28, 2001, 6:22:19 PM (24 years ago)
Author:
sandervl
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/opengl/mesa/3dfx/fxwgl.c

    r3598 r5394  
    756756  qt_valid_pix = qt_pix;
    757757
    758   if(iPixelFormat < 1 || iPixelFormat > qt_valid_pix ||
    759      ((nBytes != sizeof(PIXELFORMATDESCRIPTOR)) && (nBytes != 0))) {
    760     SetLastError(0);
    761     return(0);
    762   }
    763 
    764   if(nBytes != 0)
    765     *ppfd = pix[iPixelFormat - 1].pfd;
    766 
    767   return(qt_valid_pix);
     758  if (ppfd != NULL) {
     759     if (iPixelFormat < 1 || iPixelFormat > qt_valid_pix ||
     760        ((nBytes != sizeof(PIXELFORMATDESCRIPTOR)) && (nBytes != 0))) {
     761       SetLastError(0);
     762       return(0);
     763     }
     764
     765     if (nBytes != 0)
     766       *ppfd = pix[iPixelFormat - 1].pfd;
     767  }
     768  return qt_valid_pix;
    768769}
    769770
     
    797798
    798799#ifdef __WIN32OS2__
    799   if(iPixelFormat < 1 || iPixelFormat > qt_valid_pix || (ppfd && ppfd->nSize != sizeof(PIXELFORMATDESCRIPTOR))) {
     800  if(iPixelFormat < 1 || iPixelFormat > qt_valid_pix /*|| (ppfd && ppfd->nSize != sizeof(PIXELFORMATDESCRIPTOR))*/) {
    800801#else
    801802  if(iPixelFormat < 1 || iPixelFormat > qt_valid_pix || ppfd->nSize != sizeof(PIXELFORMATDESCRIPTOR)) {
Note: See TracChangeset for help on using the changeset viewer.