From: Park, Jeongmin Date: Tue, 3 Feb 2015 02:52:03 +0000 (+0900) Subject: st/osmesa: Fix osbuffer->textures indexing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6fd4a61ad6f19bcc8d693df6f84142ef7379509b;p=mesa.git st/osmesa: Fix osbuffer->textures indexing Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88930 Cc: 10.4 Reviewed-by: Brian Paul --- diff --git a/src/gallium/state_trackers/osmesa/osmesa.c b/src/gallium/state_trackers/osmesa/osmesa.c index 6b27c8af12c..4e2b2e045d6 100644 --- a/src/gallium/state_trackers/osmesa/osmesa.c +++ b/src/gallium/state_trackers/osmesa/osmesa.c @@ -431,7 +431,7 @@ osmesa_st_framebuffer_validate(struct st_context_iface *stctx, templat.format = format; templat.bind = bind; - out[i] = osbuffer->textures[i] = + out[i] = osbuffer->textures[statts[i]] = screen->resource_create(screen, &templat); }