st/osmesa: Fix osbuffer->textures indexing
authorPark, Jeongmin <pjm0616@gmail.com>
Tue, 3 Feb 2015 02:52:03 +0000 (11:52 +0900)
committerBrian Paul <brianp@vmware.com>
Tue, 3 Feb 2015 22:46:56 +0000 (15:46 -0700)
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>
src/gallium/state_trackers/osmesa/osmesa.c

index 6b27c8af12c393be5e225150a43d98d07727eaa5..4e2b2e045d6ca7026f495767c3a44e7350251863 100644 (file)
@@ -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);
    }