From 61fbc816570820757afdbc3cd04cd475b337ad4f Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 29 Nov 2007 08:12:33 -0700 Subject: New ctx->Driver.Map/UnmapTexture() functions for accessing textures from t_vb_program.c --- src/mesa/main/config.h | 2 +- src/mesa/main/dd.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src/mesa/main') diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h index 8eb02beb4c..ab0f035b45 100644 --- a/src/mesa/main/config.h +++ b/src/mesa/main/config.h @@ -213,7 +213,7 @@ /** For GL_ARB_vertex_shader */ /*@{*/ #define MAX_VERTEX_ATTRIBS 16 -#define MAX_VERTEX_TEXTURE_IMAGE_UNITS 0 +#define MAX_VERTEX_TEXTURE_IMAGE_UNITS MAX_TEXTURE_UNITS #define MAX_COMBINED_TEXTURE_IMAGE_UNITS (MAX_TEXTURE_IMAGE_UNITS + MAX_VERTEX_TEXTURE_IMAGE_UNITS) /*@}*/ diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index caa50dd682..77d27bb03d 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@ -493,6 +493,11 @@ struct dd_function_table { */ void (*FreeTexImageData)( GLcontext *ctx, struct gl_texture_image *tImage ); + /** Map texture image data into user space */ + void (*MapTexture)( GLcontext *ctx, struct gl_texture_object *tObj ); + /** Unmap texture images from user space */ + void (*UnmapTexture)( GLcontext *ctx, struct gl_texture_object *tObj ); + /** * Note: no context argument. This function doesn't initially look * like it belongs here, except that the driver is the only entity -- cgit v1.2.3