st/xorg: Unbind any textures in solid
authorJakob Bornecrantz <jakob@vmware.com>
Wed, 18 Nov 2009 16:38:49 +0000 (17:38 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Wed, 18 Nov 2009 16:49:37 +0000 (17:49 +0100)
Helps debuging with rbug

src/gallium/state_trackers/xorg/xorg_composite.c

index dd10e128672cc3a120807a48b2e49b94fde2f833..eed7a7d63a51126c15aebb5cf9ca390f7f012bbe 100644 (file)
@@ -565,6 +565,8 @@ boolean xorg_solid_bind_state(struct exa_context *exa,
    renderer_bind_viewport(exa->renderer, pixmap);
    renderer_bind_rasterizer(exa->renderer);
    bind_blend_state(exa, PictOpSrc, NULL, NULL, NULL);
+   cso_set_samplers(exa->renderer->cso, 0, NULL);
+   cso_set_sampler_textures(exa->renderer->cso, 0, NULL);
    setup_constant_buffers(exa, pixmap);
 
    shader = xorg_shaders_get(exa->renderer->shaders, vs_traits, fs_traits);