From: Brian Paul Date: Wed, 18 Mar 2009 16:22:05 +0000 (-0600) Subject: st: need to free/realloc pipe texture when we're handed image level > last_level X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b0e2159f2e9e9278c058d06387948f54e537d08;p=mesa.git st: need to free/realloc pipe texture when we're handed image level > last_level Fixes progs/tests/tri-fbo-tex-mip.c --- diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index f94713abd1d..df169b163e0 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -467,6 +467,7 @@ st_TexImage(GLcontext * ctx, */ if (stObj->pt) { if (stObj->teximage_realloc || + level > stObj->pt->last_level || (stObj->pt->last_level == level && stObj->pt->target != PIPE_TEXTURE_CUBE && !st_texture_match_image(stObj->pt, &stImage->base,