From 0b0e2159f2e9e9278c058d06387948f54e537d08 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 18 Mar 2009 10:22:05 -0600 Subject: [PATCH] st: need to free/realloc pipe texture when we're handed image level > last_level Fixes progs/tests/tri-fbo-tex-mip.c --- src/mesa/state_tracker/st_cb_texture.c | 1 + 1 file changed, 1 insertion(+) 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, -- 2.30.2