diff options
author | Brian Paul <[email protected]> | 2011-09-21 18:54:53 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-09-22 10:44:36 -0600 |
commit | eaf376ba354db11f7729452060570b48a029c9a0 (patch) | |
tree | 64801ebcccfbe0f83dc4dffbf6feb75ac4457558 /src/mesa/main/teximage.c | |
parent | de414f491526610bb260c73805c81ba413388e20 (diff) |
mesa: move gl_texture_image::_IsPowerOfTwo into swrast
It's only used by swrast.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r-- | src/mesa/main/teximage.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index fa00183ac65..50e7b4c0794 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -1159,13 +1159,6 @@ _mesa_init_teximage_fields(struct gl_context *ctx, GLenum target, img->MaxLog2 = MAX2(img->WidthLog2, img->HeightLog2); - if ((width == 1 || _mesa_is_pow_two(img->Width2)) && - (height == 1 || _mesa_is_pow_two(img->Height2)) && - (depth == 1 || _mesa_is_pow_two(img->Depth2))) - img->_IsPowerOfTwo = GL_TRUE; - else - img->_IsPowerOfTwo = GL_FALSE; - /* RowStride and ImageOffsets[] describe how to address texels in 'Data' */ img->RowStride = width; /* Allocate the ImageOffsets array and initialize to typical values. |