st/python: Allow to sample only in the [0,1] range.
[mesa.git] / src / gallium / state_trackers / python / p_context.i
index bccaeead015656eba309f5f8b7c5ecb261a55b81..02ce5647eb6c4c0ba91952ed076cadbccf0baae7 100644 (file)
@@ -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