summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/osmesa
diff options
context:
space:
mode:
authorPark, Jeongmin <pjm0616@gmail.com>2015-02-03 11:52:03 +0900
committerBrian Paul <brianp@vmware.com>2015-02-03 15:46:56 -0700
commit6fd4a61ad6f19bcc8d693df6f84142ef7379509b (patch)
tree05bb85e2db3e8cd6489bc692e996115e68623846 /src/gallium/state_trackers/osmesa
parentab24e1270674192d2aeb4ba0cc39497edb3342f8 (diff)
downloadexternal_mesa3d-6fd4a61ad6f19bcc8d693df6f84142ef7379509b.zip
external_mesa3d-6fd4a61ad6f19bcc8d693df6f84142ef7379509b.tar.gz
external_mesa3d-6fd4a61ad6f19bcc8d693df6f84142ef7379509b.tar.bz2
st/osmesa: Fix osbuffer->textures indexing
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88930 Cc: 10.4 <mesa-stable@lists.freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/gallium/state_trackers/osmesa')
-rw-r--r--src/gallium/state_trackers/osmesa/osmesa.c2
1 files changed, 1 insertions, 1 deletions
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);
}