[Mesa-dev] [PATCH 3/4] st/wgl: make stw_current_context() non-static

Brian Paul brianp at vmware.com
Wed Apr 3 16:39:40 PDT 2013


---
 src/gallium/state_trackers/wgl/stw_context.c |    2 +-
 src/gallium/state_trackers/wgl/stw_context.h |    4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/gallium/state_trackers/wgl/stw_context.c b/src/gallium/state_trackers/wgl/stw_context.c
index 1488bee..5e5b41f 100644
--- a/src/gallium/state_trackers/wgl/stw_context.c
+++ b/src/gallium/state_trackers/wgl/stw_context.c
@@ -48,7 +48,7 @@
 #include "stw_tls.h"
 
 
-static INLINE struct stw_context *
+struct stw_context *
 stw_current_context(void)
 {
    struct st_context_iface *st;
diff --git a/src/gallium/state_trackers/wgl/stw_context.h b/src/gallium/state_trackers/wgl/stw_context.h
index 07a5c7d..2a4afb6 100644
--- a/src/gallium/state_trackers/wgl/stw_context.h
+++ b/src/gallium/state_trackers/wgl/stw_context.h
@@ -28,7 +28,7 @@
 #ifndef STW_CONTEXT_H
 #define STW_CONTEXT_H
 
-#include <windows.h>
+#include "stw_icd.h"
 
 struct stw_framebuffer;
 struct st_context_iface;
@@ -48,6 +48,8 @@ DHGLRC stw_create_context_attribs( HDC hdc, INT iLayerPlane, DHGLRC hShareContex
 
 DHGLRC stw_get_current_context( void );
 
+struct stw_context *stw_current_context(void);
+
 HDC stw_get_current_dc( void );
 
 BOOL stw_make_current( HDC hdc, DHGLRC dhglrc );
-- 
1.7.3.4



More information about the mesa-dev mailing list