summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-03-30 17:08:23 +0100
committerJosé Fonseca <[email protected]>2009-03-30 17:19:10 +0100
commit844868048f404ab941cc2e75358b77463ee67482 (patch)
tree3c4c6f2b0fb77ef52113a2da4e8f14d81c51f90d
parent28de69d6819eab289a400482d15797b662e4d633 (diff)
python: Set correct transfer mode.
-rw-r--r--src/gallium/state_trackers/python/p_texture.i2
-rw-r--r--src/gallium/state_trackers/python/st_sample.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/python/p_texture.i b/src/gallium/state_trackers/python/p_texture.i
index 543a0cf33f8..b97d1889737 100644
--- a/src/gallium/state_trackers/python/p_texture.i
+++ b/src/gallium/state_trackers/python/p_texture.i
@@ -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);
diff --git a/src/gallium/state_trackers/python/st_sample.c b/src/gallium/state_trackers/python/st_sample.c
index 70ca16c23dd..53a01891e12 100644
--- a/src/gallium/state_trackers/python/st_sample.c
+++ b/src/gallium/state_trackers/python/st_sample.c
@@ -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);