st/wgl: Invoke SetPixelFormat twice for pbuffers.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user