summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/wgl/stw_st.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2011-05-23 20:38:41 +0100
committerJosé Fonseca <jfonseca@vmware.com>2011-05-24 13:12:39 +0100
commitc3c1976f522a67be6a0619e938a90cf186ad42e6 (patch)
tree94a99b1612a0796894a23f84139621f8a47f97c5 /src/gallium/state_trackers/wgl/stw_st.h
parent5af46e836073d2112b147b524e441bdb808cc128 (diff)
downloadexternal_mesa3d-c3c1976f522a67be6a0619e938a90cf186ad42e6.zip
external_mesa3d-c3c1976f522a67be6a0619e938a90cf186ad42e6.tar.gz
external_mesa3d-c3c1976f522a67be6a0619e938a90cf186ad42e6.tar.bz2
wgl: Don't hold on to user supplied HDC.
Certain applications (e.g., Bernina My Label, and the Windows implementation of Processing language) destroy the device context used when creating the frame-buffer, causing presents to fail because we were still referring to the old device context internally. This change ensures we always use the same HDC passed to the ICD entry-points when available, or our own HDC when not available (necessary only when flushing on single buffered visuals).
Diffstat (limited to 'src/gallium/state_trackers/wgl/stw_st.h')
-rw-r--r--src/gallium/state_trackers/wgl/stw_st.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/wgl/stw_st.h b/src/gallium/state_trackers/wgl/stw_st.h
index 23771d8..945d350 100644
--- a/src/gallium/state_trackers/wgl/stw_st.h
+++ b/src/gallium/state_trackers/wgl/stw_st.h
@@ -28,6 +28,8 @@
#ifndef STW_ST_H
#define STW_ST_H
+#include <windows.h>
+
#include "state_tracker/st_api.h"
struct stw_framebuffer;
@@ -42,6 +44,6 @@ void
stw_st_destroy_framebuffer_locked(struct st_framebuffer_iface *stfb);
boolean
-stw_st_swap_framebuffer_locked(struct st_framebuffer_iface *stfb);
+stw_st_swap_framebuffer_locked(HDC hdc, struct st_framebuffer_iface *stfb);
#endif /* STW_ST_H */