python: Set correct transfer mode.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 30 Mar 2009 16:08:23 +0000 (17:08 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 30 Mar 2009 16:19:10 +0000 (17:19 +0100)
src/gallium/state_trackers/python/p_texture.i
src/gallium/state_trackers/python/st_sample.c

index 543a0cf33f8307a3500f9c0fe252d8fa73f2d4e7..b97d1889737dedf96237910b86c73862369e06b6 100644 (file)
@@ -315,7 +315,7 @@ struct st_surface
                                           $self->face,
                                           $self->level,
                                           $self->zslice,
-                                          PIPE_TRANSFER_WRITE,
+                                          PIPE_TRANSFER_READ,
                                           x, y, w, h);
       if(!transfer) {
          FREE(rgba2);
index 70ca16c23dd75efd07252385d99f7949e4f0e477..53a01891e128759346c06809ecc4fd183641b139 100644 (file)
@@ -539,7 +539,7 @@ st_sample_surface(struct st_surface *surface, float *rgba)
                                        surface->face,
                                        surface->level,
                                        surface->zslice,
-                                       PIPE_TRANSFER_READ,
+                                       PIPE_TRANSFER_WRITE,
                                        0, 0,
                                        width,
                                        height);