st/wgl: Invoke SetPixelFormat twice for pbuffers.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 8 Feb 2012 16:01:22 +0000 (16:01 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 10 Feb 2012 16:23:27 +0000 (16:23 +0000)
src/gallium/state_trackers/wgl/stw_ext_pbuffer.c

index 252d07a90cc216f85e8f93384b207a1c094e5765..282d8a3d4247186f98c66d936246e0aa6aca0d82 100644 (file)
@@ -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;
 }