From 4a92e0bd3e6234c8238a61da96abd6b564d35e32 Mon Sep 17 00:00:00 2001 From: "Park, Jeongmin" Date: Tue, 3 Feb 2015 11:52:03 +0900 Subject: [PATCH] osmesa: Fix osbuffer->textures indexing --- src/gallium/state_trackers/osmesa/osmesa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/osmesa/osmesa.c b/src/gallium/state_trackers/osmesa/osmesa.c index 6b27c8a..4e2b2e0 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); } -- 2.0.2