From: José Fonseca Date: Wed, 8 Feb 2012 16:01:22 +0000 (+0000) Subject: st/wgl: Invoke SetPixelFormat twice for pbuffers. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90a95f4d2c50b63ffa4c114081a1cfa5cdfa05cb;p=mesa.git st/wgl: Invoke SetPixelFormat twice for pbuffers. --- diff --git a/src/gallium/state_trackers/wgl/stw_ext_pbuffer.c b/src/gallium/state_trackers/wgl/stw_ext_pbuffer.c index 252d07a90cc..282d8a3d424 100644 --- a/src/gallium/state_trackers/wgl/stw_ext_pbuffer.c +++ b/src/gallium/state_trackers/wgl/stw_ext_pbuffer.c @@ -226,7 +226,8 @@ wglGetPbufferDCARB(HPBUFFERARB hPbuffer) fb = (struct stw_framebuffer *)hPbuffer; hDC = GetDC(fb->hWnd); - SetPixelFormat(hDC, fb->iPixelFormat, &fb->pfi->pfd); + + assert(hDC == fb->hDC); return hDC; }