[Mesa-dev] [PATCH 2/4] mesa: Declare _mesa_RenderMode as non-static

Chad Versace chad at chad-versace.us
Fri Oct 7 15:55:35 PDT 2011


This is required in order for meta-ops to save/restore the GL_RENDER_MODE
state, which is implemented in the next commit.

Signed-off-by: Chad Versace <chad at chad-versace.us>
---
 src/mesa/main/feedback.c |    2 +-
 src/mesa/main/feedback.h |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/feedback.c b/src/mesa/main/feedback.c
index cb5f49f..f95e3b5 100644
--- a/src/mesa/main/feedback.c
+++ b/src/mesa/main/feedback.c
@@ -418,7 +418,7 @@ _mesa_PopName( void )
  * __struct gl_contextRec::RenderMode and notifies the driver via the
  * dd_function_table::RenderMode callback.
  */
-static GLint GLAPIENTRY
+GLint GLAPIENTRY
 _mesa_RenderMode( GLenum mode )
 {
    GET_CURRENT_CONTEXT(ctx);
diff --git a/src/mesa/main/feedback.h b/src/mesa/main/feedback.h
index 6d256ee..c64db31 100644
--- a/src/mesa/main/feedback.h
+++ b/src/mesa/main/feedback.h
@@ -33,6 +33,9 @@
 
 #if FEATURE_feedback
 
+extern GLint GLAPIENTRY
+_mesa_RenderMode( GLenum mode );
+
 extern void
 _mesa_feedback_vertex( struct gl_context *ctx,
                        const GLfloat win[4],
-- 
1.7.6.2



More information about the mesa-dev mailing list