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;
|
||||
else if (pfd.dwFlags & PFD_GENERIC_ACCELERATED)
|
||||
drvtype = MCD;
|
||||
else
|
||||
drvtype = ICD;
|
||||
|
||||
// skip driver types we are not looking for
|
||||
if((drvtype==Software) && bLookforHW)
|
||||
continue;
|
||||
|
||||
if((drvtype!=Software) && !bLookforHW)
|
||||
continue;
|
||||
else drvtype = ICD;
|
||||
|
||||
#if MY_OLD_ALGORITHM
|
||||
if ((pfd.dwFlags & PFD_GENERIC_ACCELERATED) && (pfd.dwFlags & PFD_GENERIC_FORMAT))
|
||||
@ -853,6 +845,15 @@ int wglGraphicsWindow::find_pixfmtnum(bool bLookforHW) {
|
||||
continue; // skipping all SW fmts
|
||||
}
|
||||
#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))
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user