From 90a95f4d2c50b63ffa4c114081a1cfa5cdfa05cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 8 Feb 2012 16:01:22 +0000 Subject: [PATCH] st/wgl: Invoke SetPixelFormat twice for pbuffers. --- src/gallium/state_trackers/wgl/stw_ext_pbuffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.30.2