In theory, it's possible to request a GDI-supporting, double buffered
pixel-format, and we're not able to support this using the DXGI
swapchains. So let's return NULL here in that case as well.
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7535>
{
const struct stw_pixelformat_info *pfi =
stw_pixelformat_get_info(iPixelFormat);
- if (!(pfi->pfd.dwFlags & PFD_DOUBLEBUFFER))
+ if (!(pfi->pfd.dwFlags & PFD_DOUBLEBUFFER) ||
+ (pfi->pfd.dwFlags & PFD_SUPPORT_GDI))
return NULL;
struct d3d12_wgl_framebuffer *fb = CALLOC_STRUCT(d3d12_wgl_framebuffer);