Index: wgl.c =================================================================== --- wgl.c (revision 40526) +++ wgl.c (working copy) @@ -555,9 +555,11 @@ continue; } + score = 0; /* higher is worse */ + /* compare flags */ if ((pfd->dwFlags & compareFlags) != (icdPfd.dwFlags & compareFlags)) - continue; + score += 5; if (!(pfd->dwFlags & PFD_DOUBLEBUFFER_DONTCARE) && ((pfd->dwFlags & PFD_DOUBLEBUFFER) != (icdPfd.dwFlags & PFD_DOUBLEBUFFER))) continue; @@ -566,7 +568,6 @@ continue; /* check other attribs */ - score = 0; /* higher is worse */ if (pfd->iPixelType != icdPfd.iPixelType) score += 5; /* this is really bad i think */ if (pfd->iLayerType != icdPfd.iLayerType)