make read_stencil_pixels() non-static
authorBrian <brian.paul@tungstengraphics.com>
Thu, 18 Oct 2007 18:31:05 +0000 (12:31 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 18 Oct 2007 18:31:05 +0000 (12:31 -0600)
src/mesa/state_tracker/st_cb_readpixels.c
src/mesa/state_tracker/st_cb_readpixels.h

index 8c9c47a53538495119dd92d0e4dd8c72cb8aeb24..7bce7e9a27b67bc1f6c303cc1f71399135e9da31 100644 (file)
  * Special case for reading stencil buffer.
  * For color/depth we use get_tile().  For stencil, map the stencil buffer.
  */
-static void
-read_stencil_pixels(GLcontext *ctx, GLint x, GLint y,
-                    GLsizei width, GLsizei height, GLenum type,
-                    const struct gl_pixelstore_attrib *packing,
-                    GLvoid *pixels)
+void
+st_read_stencil_pixels(GLcontext *ctx, GLint x, GLint y,
+                       GLsizei width, GLsizei height, GLenum type,
+                       const struct gl_pixelstore_attrib *packing,
+                       GLvoid *pixels)
 {
    struct st_context *st = ctx->st;
    struct pipe_context *pipe = st->pipe;
index 1dbe9727a5defce6522091b8e42de25cd047f5b9..79acdad88e1ce5746ce28ce2c47cb4cf98b97719 100644 (file)
 #ifndef ST_CB_READPIXELS_H
 #define ST_CB_READPIXELS_H
 
+extern void
+st_read_stencil_pixels(GLcontext *ctx, GLint x, GLint y,
+                       GLsizei width, GLsizei height, GLenum type,
+                       const struct gl_pixelstore_attrib *packing,
+                       GLvoid *pixels);
+
 extern void
 st_init_readpixels_functions(struct dd_function_table *functions);