summaryrefslogtreecommitdiff
path: root/src/mesa/main/dd.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2008-05-09 13:33:06 +1000
committerDave Airlie <airlied@linux.ie>2008-05-09 13:33:06 +1000
commita638676473bd7bf2d47275ed2fd708e5b9d47e0b (patch)
tree9af844132ac30183b101b2cfefdca3fa07c92594 /src/mesa/main/dd.h
parentc50ffc4cb89b67ae59208eb72cdb664c846ba987 (diff)
Added ctx->Driver.GenerateMipmap() driver hook
(cherry picked from commit 4c2f3dbca940f289e67248682b84a3516d5a3031) Conflicts: src/mesa/drivers/common/driverfuncs.c
Diffstat (limited to 'src/mesa/main/dd.h')
-rw-r--r--src/mesa/main/dd.h7
1 files changed, 7 insertions, 0 deletions
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
@@ -328,6 +328,13 @@ struct dd_function_table {
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.
*