st/wgl: Don't cache HDC anywhere.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 8 Oct 2012 10:40:58 +0000 (11:40 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 8 Oct 2012 14:42:50 +0000 (15:42 +0100)
commit88e417d7614aa1dbb46187fb0609a3a2c2291905
tree1c4963e8175ef7794b61b46ada68bda61d08118e
parent86de501f14f11f1e993c8703c0d69bdf1f6c7835
st/wgl: Don't cache HDC anywhere.

Applications may destroy HDC at any time. So always get a HDC as needed.

Fixes lack of presents with Solidworks eDrawings when screen resolution is
changed.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/state_trackers/wgl/stw_ext_pbuffer.c
src/gallium/state_trackers/wgl/stw_framebuffer.c
src/gallium/state_trackers/wgl/stw_framebuffer.h
src/gallium/state_trackers/wgl/stw_st.c