st/mesa: remove stImage->base.Face/Level assignments in st_TexImage()
authorBrian Paul <brianp@vmware.com>
Fri, 30 Dec 2011 23:39:24 +0000 (16:39 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 30 Dec 2011 23:42:27 +0000 (16:42 -0700)
This fixes a regresssion (broken cube maps) caused by the
ctx->Driver.TexImage parameter simplification commit.  The target var
is always GL_TEXTURE_CUBE_MAP at this point so the Face field was always
getting set to zero.

These field assignments aren't needed anyway since core Mesa sets them.

src/mesa/state_tracker/st_cb_texture.c

index ecd21ad..cf9d068 100644 (file)
@@ -544,9 +544,6 @@ st_TexImage(struct gl_context * ctx,
    assert(texImage->Height == height);
    assert(texImage->Depth == depth);
 
-   stImage->base.Face = _mesa_tex_target_to_face(target);
-   stImage->base.Level = level;
-
    /* Release the reference to a potentially orphaned buffer.   
     * Release any old malloced memory.
     */