Mesa (10.4): st/osmesa: Fix osbuffer->textures indexing
Emil Velikov
evelikov at kemper.freedesktop.org
Wed Feb 4 01:51:52 UTC 2015
Module: Mesa
Branch: 10.4
Commit: fecedb6c430e4dc2c8417989d873cc77d97fc1d6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fecedb6c430e4dc2c8417989d873cc77d97fc1d6
Author: Park, Jeongmin <pjm0616 at gmail.com>
Date: Tue Feb 3 11:52:03 2015 +0900
st/osmesa: Fix osbuffer->textures indexing
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88930
Cc: 10.4 <mesa-stable at lists.freedesktop.org>
Reviewed-by: Brian Paul <brianp at vmware.com>
(cherry picked from commit 6fd4a61ad6f19bcc8d693df6f84142ef7379509b)
---
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);
}
More information about the mesa-commit
mailing list