mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
cosmetic chng
This commit is contained in:
parent
e3df94a036
commit
b20474cb50
@ -833,15 +833,7 @@ int wglGraphicsWindow::find_pixfmtnum(bool bLookforHW) {
|
|||||||
drvtype = Software;
|
drvtype = Software;
|
||||||
else if (pfd.dwFlags & PFD_GENERIC_ACCELERATED)
|
else if (pfd.dwFlags & PFD_GENERIC_ACCELERATED)
|
||||||
drvtype = MCD;
|
drvtype = MCD;
|
||||||
else
|
else drvtype = ICD;
|
||||||
drvtype = ICD;
|
|
||||||
|
|
||||||
// skip driver types we are not looking for
|
|
||||||
if((drvtype==Software) && bLookforHW)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if((drvtype!=Software) && !bLookforHW)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
#if MY_OLD_ALGORITHM
|
#if MY_OLD_ALGORITHM
|
||||||
if ((pfd.dwFlags & PFD_GENERIC_ACCELERATED) && (pfd.dwFlags & PFD_GENERIC_FORMAT))
|
if ((pfd.dwFlags & PFD_GENERIC_ACCELERATED) && (pfd.dwFlags & PFD_GENERIC_FORMAT))
|
||||||
@ -854,6 +846,15 @@ int wglGraphicsWindow::find_pixfmtnum(bool bLookforHW) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// skip driver types we are not looking for
|
||||||
|
if(bLookforHW) {
|
||||||
|
if(drvtype==Software)
|
||||||
|
continue;
|
||||||
|
} else {
|
||||||
|
if(drvtype!=Software)
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if ((pfd.iPixelType == PFD_TYPE_COLORINDEX) && !(mask & W_INDEX))
|
if ((pfd.iPixelType == PFD_TYPE_COLORINDEX) && !(mask & W_INDEX))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user