From a638676473bd7bf2d47275ed2fd708e5b9d47e0b Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 9 May 2008 13:33:06 +1000 Subject: Added ctx->Driver.GenerateMipmap() driver hook (cherry picked from commit 4c2f3dbca940f289e67248682b84a3516d5a3031) Conflicts: src/mesa/drivers/common/driverfuncs.c --- src/mesa/main/dd.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mesa/main/dd.h') diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index ce33905af1..bfbb96aebb 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@ -327,6 +327,13 @@ struct dd_function_table { GLint x, GLint y, GLsizei width, GLsizei height ); + /** + * Called by glGenerateMipmap() or when GL_GENERATE_MIPMAP_SGIS is enabled. + */ + void (*GenerateMipmap)(GLcontext *ctx, GLenum target, + const struct gl_texture_unit *texUnit, + struct gl_texture_object *texObj); + /** * Called by glTexImage[123]D when user specifies a proxy texture * target. -- cgit v1.2.3