From a8e21ef4c2d5e6f5fb39a4bcbcb8db1651675359 Mon Sep 17 00:00:00 2001 From: Cary Sandvig Date: Tue, 7 Nov 2000 18:19:18 +0000 Subject: [PATCH] little more friendly debug formatting --- panda/src/wgldisplay/wglGraphicsWindow.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/panda/src/wgldisplay/wglGraphicsWindow.cxx b/panda/src/wgldisplay/wglGraphicsWindow.cxx index 2bacbae41b..04a16be385 100644 --- a/panda/src/wgldisplay/wglGraphicsWindow.cxx +++ b/panda/src/wgldisplay/wglGraphicsWindow.cxx @@ -524,6 +524,9 @@ int wglGraphicsWindow::choose_visual(void) { for(i=1;i<=MaxPixFmtNum;i++) { 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)) drvtype=MCD; else if(!(pfd.dwFlags & PFD_GENERIC_ACCELERATED) && !(pfd.dwFlags & PFD_GENERIC_FORMAT))