diff options
author | Brian Paul <[email protected]> | 2011-09-21 18:54:53 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-09-22 10:44:57 -0600 |
commit | 980f6f1b37ca88529b3e000235156eab93254fac (patch) | |
tree | aa35b265eb89284d160ca6211322204efebb3e5c /src/mesa/main/teximage.c | |
parent | eaf376ba354db11f7729452060570b48a029c9a0 (diff) |
mesa: move gl_texture_image::Width/Height/DepthScale fields to swrast
These fields were only used for swrast so move them into
swrast_texture_image.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r-- | src/mesa/main/teximage.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 50e7b4c0794..4f7f2ed60de 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -1172,19 +1172,6 @@ _mesa_init_teximage_fields(struct gl_context *ctx, GLenum target, img->ImageOffsets[i] = i * width * height; } - /* Compute Width/Height/DepthScale for mipmap lod computation */ - if (target == GL_TEXTURE_RECTANGLE_NV) { - /* scale = 1.0 since texture coords directly map to texels */ - img->WidthScale = 1.0; - img->HeightScale = 1.0; - img->DepthScale = 1.0; - } - else { - img->WidthScale = (GLfloat) img->Width; - img->HeightScale = (GLfloat) img->Height; - img->DepthScale = (GLfloat) img->Depth; - } - img->TexFormat = format; } |