summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/python/gallium.i
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-07-14 11:38:44 +0900
committerJosé Fonseca <[email protected]>2008-07-14 12:41:06 +0900
commit3679f690230b9691157d44cfa5baf947d84e1487 (patch)
tree937a91fc050cdca8149a56af03878de8a4db641f /src/gallium/state_trackers/python/gallium.i
parent05a23e6c6f08d4d901dc9fc9995b3444fa6355dd (diff)
python: Set default state.
Diffstat (limited to 'src/gallium/state_trackers/python/gallium.i')
-rw-r--r--src/gallium/state_trackers/python/gallium.i2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/python/gallium.i b/src/gallium/state_trackers/python/gallium.i
index 53d160ef6c4..6e355b79757 100644
--- a/src/gallium/state_trackers/python/gallium.i
+++ b/src/gallium/state_trackers/python/gallium.i
@@ -266,6 +266,8 @@ struct st_context {
void set_sampler_texture(unsigned index,
struct pipe_texture *texture) {
+ if(!texture)
+ texture = $self->default_texture;
pipe_texture_reference(&$self->sampler_textures[index], texture);
$self->pipe->set_sampler_textures($self->pipe,
PIPE_MAX_SAMPLERS,