From 06913497d6b17f454bf4c5b8601d391980eb8265 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 1 Dec 2011 10:47:31 -0700 Subject: [PATCH] mesa: fix some minor texstore comments For the texsubimage commands, we're not mapping the whole image/region. --- src/mesa/main/texstore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index a2a49ce..7c4e08c 100644 --- a/src/mesa/main/texstore.c +++ b/src/mesa/main/texstore.c @@ -4834,7 +4834,7 @@ _mesa_store_texsubimage1d(struct gl_context *ctx, GLenum target, GLint level, if (!pixels) return; - /* Map dest texture buffer (write to whole region) */ + /* Map dest texture buffer */ ctx->Driver.MapTextureImage(ctx, texImage, 0, xoffset, 0, width, 1, rwMode, @@ -4887,7 +4887,7 @@ _mesa_store_texsubimage2d(struct gl_context *ctx, GLenum target, GLint level, if (!pixels) return; - /* Map dest texture buffer (write to whole region) */ + /* Map dest texture buffer */ ctx->Driver.MapTextureImage(ctx, texImage, 0, xoffset, yoffset, width, height, rwMode, @@ -5150,7 +5150,7 @@ _mesa_store_compressed_texsubimage2d(struct gl_context *ctx, GLenum target, srcRowStride = _mesa_format_row_stride(texFormat, width); src = (const GLubyte *) data; - /* Map dest texture buffer (write to whole region) */ + /* Map dest texture buffer */ ctx->Driver.MapTextureImage(ctx, texImage, 0, xoffset, yoffset, width, height, GL_MAP_WRITE_BIT, -- 2.7.4