diff options
author | Brian Paul <[email protected]> | 2011-10-23 20:17:53 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-10-23 20:17:53 -0600 |
commit | b487fc50b0f977719729a540230e72d406063860 (patch) | |
tree | 043d503b372911602218227bc89a356cd57c50ff /src | |
parent | 597df3efdaa06d7c6a834bcaed8e6d5806be0cb5 (diff) |
mesa: remove dead code from teximage.c
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/teximage.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index c4089f4a9e7..798201a60b0 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -594,13 +594,6 @@ _mesa_delete_texture_image(struct gl_context *ctx, */ ASSERT(ctx->Driver.FreeTextureImageBuffer); ctx->Driver.FreeTextureImageBuffer( ctx, texImage ); - -#if 0 - ASSERT(texImage->Data == NULL); - if (texImage->ImageOffsets) - free(texImage->ImageOffsets); - free(texImage); -#endif } @@ -1042,13 +1035,6 @@ clear_teximage_fields(struct gl_texture_image *img) img->Width = 0; img->Height = 0; img->Depth = 0; -#if 0 - img->RowStride = 0; - if (img->ImageOffsets) { - free(img->ImageOffsets); - img->ImageOffsets = NULL; - } -#endif img->Width2 = 0; img->Height2 = 0; img->Depth2 = 0; @@ -1118,21 +1104,6 @@ _mesa_init_teximage_fields(struct gl_context *ctx, GLenum target, img->MaxLog2 = MAX2(img->WidthLog2, img->HeightLog2); -#if 0 - /* RowStride and ImageOffsets[] describe how to address texels in 'Data' */ - img->RowStride = width; - /* Allocate the ImageOffsets array and initialize to typical values. - * We allocate the array for 1D/2D textures too in order to avoid special- - * case code in the texstore routines. - */ - if (img->ImageOffsets) - free(img->ImageOffsets); - img->ImageOffsets = (GLuint *) malloc(depth * sizeof(GLuint)); - for (i = 0; i < depth; i++) { - img->ImageOffsets[i] = i * width * height; - } -#endif - img->TexFormat = format; } |