From 99fbf7ce341c346631d11395c792a0589c5035dd Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 30 Dec 2011 16:39:24 -0700 Subject: [PATCH] st/mesa: remove stImage->base.Face/Level assignments in st_TexImage() 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 | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index ecd21ad9200..cf9d068e36f 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -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. */ -- 2.30.2