From: Jakob Bornecrantz Date: Wed, 18 Nov 2009 16:38:49 +0000 (+0100) Subject: st/xorg: Unbind any textures in solid X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d6da811d4fff50dc42e71c6149759908a458f7f;p=mesa.git st/xorg: Unbind any textures in solid Helps debuging with rbug --- diff --git a/src/gallium/state_trackers/xorg/xorg_composite.c b/src/gallium/state_trackers/xorg/xorg_composite.c index dd10e128672..eed7a7d63a5 100644 --- a/src/gallium/state_trackers/xorg/xorg_composite.c +++ b/src/gallium/state_trackers/xorg/xorg_composite.c @@ -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);