diff options
author | José Fonseca <jrfonseca@tungstengraphics.com> | 2008-07-14 11:38:44 +0900 |
---|---|---|
committer | José Fonseca <jrfonseca@tungstengraphics.com> | 2008-07-14 12:41:06 +0900 |
commit | 3679f690230b9691157d44cfa5baf947d84e1487 (patch) | |
tree | 937a91fc050cdca8149a56af03878de8a4db641f /src/gallium/state_trackers/python/gallium.i | |
parent | 05a23e6c6f08d4d901dc9fc9995b3444fa6355dd (diff) |
python: Set default state.
Diffstat (limited to 'src/gallium/state_trackers/python/gallium.i')
-rw-r--r-- | src/gallium/state_trackers/python/gallium.i | 2 |
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 53d160ef6c..6e355b7975 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, |