summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@tungstengraphics.com>2008-04-24 17:07:45 +0200
committerJakob Bornecrantz <jakob@tungstengraphics.com>2008-04-24 17:10:11 +0200
commitcefa367b5d909f26d943101efb042562de778c5f (patch)
tree9e9f0295e34ca25080b579b1fd6687355d3b16df /src/gallium
parentd712eea074303812b1be0e79b302d7b9f49a09a8 (diff)
i915: Fix for wrong texture in texobj with VBUF
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/i915simple/i915_state.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/i915simple/i915_state.c b/src/gallium/drivers/i915simple/i915_state.c
index 24d31ad740..3d94b52366 100644
--- a/src/gallium/drivers/i915simple/i915_state.c
+++ b/src/gallium/drivers/i915simple/i915_state.c
@@ -549,6 +549,9 @@ static void i915_set_sampler_textures(struct pipe_context *pipe,
!memcmp(i915->texture, texture, num * sizeof(struct pipe_texture *)))
return;
+ /* Fixes wrong texture in texobj with VBUF */
+ draw_flush(i915->draw);
+
for (i = 0; i < num; i++)
pipe_texture_reference((struct pipe_texture **) &i915->texture[i],
texture[i]);