mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
little more friendly debug formatting
This commit is contained in:
parent
fd4f9a170c
commit
a8e21ef4c2
@ -524,6 +524,9 @@ int wglGraphicsWindow::choose_visual(void) {
|
|||||||
for(i=1;i<=MaxPixFmtNum;i++) {
|
for(i=1;i<=MaxPixFmtNum;i++) {
|
||||||
DescribePixelFormat(_hdc, i, sizeof(PIXELFORMATDESCRIPTOR), &pfd);
|
DescribePixelFormat(_hdc, i, sizeof(PIXELFORMATDESCRIPTOR), &pfd);
|
||||||
|
|
||||||
|
if (wgldisplay_cat->is_debug())
|
||||||
|
wgldisplay_cat->debug() << "----------------" << endl;
|
||||||
|
|
||||||
if((pfd.dwFlags & PFD_GENERIC_ACCELERATED) && (pfd.dwFlags & PFD_GENERIC_FORMAT))
|
if((pfd.dwFlags & PFD_GENERIC_ACCELERATED) && (pfd.dwFlags & PFD_GENERIC_FORMAT))
|
||||||
drvtype=MCD;
|
drvtype=MCD;
|
||||||
else if(!(pfd.dwFlags & PFD_GENERIC_ACCELERATED) && !(pfd.dwFlags & PFD_GENERIC_FORMAT))
|
else if(!(pfd.dwFlags & PFD_GENERIC_ACCELERATED) && !(pfd.dwFlags & PFD_GENERIC_FORMAT))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user