mesa: fix potential mem leak in generate_mipmap_compressed()
[mesa.git] / src / mesa / main / readpix.h
index f6bb3d6e273c7b1afd49572b6f2a9656ffa985f3..6caaf3adce1f1e981b5d344d1ad4db627c6b7e05 100644 (file)
 #include "glheader.h"
 
 struct gl_context;
+struct gl_pixelstore_attrib;
+
 
 extern GLboolean
 _mesa_error_check_format_type(struct gl_context *ctx, GLenum format, GLenum type,
                               GLboolean drawing);
 
+extern void
+_mesa_readpixels(struct gl_context *ctx,
+                 GLint x, GLint y, GLsizei width, GLsizei height,
+                 GLenum format, GLenum type,
+                 const struct gl_pixelstore_attrib *packing,
+                 GLvoid *pixels);
+
 extern void GLAPIENTRY
 _mesa_ReadPixels( GLint x, GLint y, GLsizei width, GLsizei height,
                   GLenum format, GLenum type, GLvoid *pixels );