diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-04-01 17:35:46 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-04-01 17:46:59 +0100 |
commit | f14c5adbc78b010d1b07eee9f0f65a99d0df4248 (patch) | |
tree | 0ece2756fdacc29ca9e782c9aac63d343214b3b3 /src/gallium/state_trackers/python/p_context.i | |
parent | 811e602954f3093e7fbfbcc464c3b3f1870876ed (diff) |
st/python: Allow to sample only in the [0,1] range.
Diffstat (limited to 'src/gallium/state_trackers/python/p_context.i')
-rw-r--r-- | src/gallium/state_trackers/python/p_context.i | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/python/p_context.i b/src/gallium/state_trackers/python/p_context.i index bccaeead01..02ce5647eb 100644 --- a/src/gallium/state_trackers/python/p_context.i +++ b/src/gallium/state_trackers/python/p_context.i @@ -589,9 +589,10 @@ error1: void surface_sample_rgba(struct st_surface *surface, - float *rgba) + float *rgba, + int norm = 0) { - st_sample_surface($self->pipe, surface, rgba); + st_sample_surface($self->pipe, surface, rgba, norm != 0); } unsigned |