From: Brian Paul Date: Thu, 1 Dec 2011 17:47:31 +0000 (-0700) Subject: mesa: fix some minor texstore comments X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06913497d6b17f454bf4c5b8601d391980eb8265;p=mesa.git mesa: fix some minor texstore comments For the texsubimage commands, we're not mapping the whole image/region. --- diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index a2a49ce0c71..7c4e08cefc8 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,