st/wgl: release the pbuffer DC at the end of wglBindTexImageARB()
authorBrian Paul <brianp@vmware.com>
Thu, 12 May 2016 22:33:30 +0000 (16:33 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 30 Jun 2016 18:43:49 +0000 (12:43 -0600)
commit24004a24359af16fcb8671e6b0478f3adee509a7
treeb963aca6e332fe142c1bdad0163fedfe10a4bed4
parent058c70bae1a70d63671b2f37a10950b21e615802
st/wgl: release the pbuffer DC at the end of wglBindTexImageARB()

Otherwise we were leaking DC GDI objects and if wglBindTexImageARB()
was called enough we'd eventually hit the GDI limit of 10,000 objects.
Things started failing at that point.

v2: also release DC if we return early, per Charmaine.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/state_trackers/wgl/stw_ext_rendertexture.c