summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2012-02-08 16:01:22 +0000
committerJosé Fonseca <[email protected]>2012-02-10 16:23:27 +0000
commit90a95f4d2c50b63ffa4c114081a1cfa5cdfa05cb (patch)
treeb806c4e9300b1b7a989354d60b5afb8f01df7073 /src
parent0cf554fa9b31dbac1890f496974392001e2df825 (diff)
st/wgl: Invoke SetPixelFormat twice for pbuffers.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/wgl/stw_ext_pbuffer.c3
1 files changed, 2 insertions, 1 deletions
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;
}