From 844868048f404ab941cc2e75358b77463ee67482 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Mon, 30 Mar 2009 17:08:23 +0100 Subject: python: Set correct transfer mode. --- src/gallium/state_trackers/python/p_texture.i | 2 +- src/gallium/state_trackers/python/st_sample.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3