st/wgl: do not reject PFD_SUPPORT_GDI
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 12 Jun 2020 14:30:01 +0000 (16:30 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 18 Aug 2020 10:28:31 +0000 (10:28 +0000)
The WGL implementation is currently on top of GDI, so it supports GDI
just fine. No need to reject this.

Acked-by: Jose Fonseca <jfonseca@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6217>

src/gallium/frontends/wgl/stw_wgl.c

index bbb3beaf9e5ed4739907d3ec00808e163ac5e931..fc0796fe24bdfd7ac2469e35ada4899969cba375 100644 (file)
@@ -168,8 +168,6 @@ wglChoosePixelFormat(
       return 0;
    if (ppfd->dwFlags & PFD_DRAW_TO_BITMAP)
       return 0;
-   if (ppfd->dwFlags & PFD_SUPPORT_GDI)
-      return 0;
    if (!(ppfd->dwFlags & PFD_STEREO_DONTCARE) && (ppfd->dwFlags & PFD_STEREO))
       return 0;