Changeset 5394 for trunk/src/opengl/mesa
- Timestamp:
- Mar 28, 2001, 6:22:19 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/mesa/3dfx/fxwgl.c
r3598 r5394 756 756 qt_valid_pix = qt_pix; 757 757 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; 768 769 } 769 770 … … 797 798 798 799 #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))*/) { 800 801 #else 801 802 if(iPixelFormat < 1 || iPixelFormat > qt_valid_pix || ppfd->nSize != sizeof(PIXELFORMATDESCRIPTOR)) {
Note:
See TracChangeset
for help on using the changeset viewer.