Mesa (master): mesa: Declare _mesa_RenderMode as non-static

Chad Versace chadversary at kemper.freedesktop.org
Tue Oct 18 11:44:12 PDT 2011


Module: Mesa
Branch: master
Commit: c56d0a61b97b29cec851df4cd385f095e3876848
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c56d0a61b97b29cec851df4cd385f095e3876848

Author: Chad Versace <chad at chad-versace.us>
Date:   Fri Oct  7 15:45:51 2011 -0700

mesa: Declare _mesa_RenderMode as non-static

This is required in order for meta-ops to save/restore the GL_RENDER_MODE
state.

Reviewed-by: Brian Paul <brianp at vmware.com>
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],



More information about the mesa-commit mailing list