From: Jakob Bornecrantz Date: Thu, 24 Apr 2008 15:07:45 +0000 (+0200) Subject: i915: Fix for wrong texture in texobj with VBUF X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cefa367b5d909f26d943101efb042562de778c5f;p=mesa.git i915: Fix for wrong texture in texobj with VBUF --- diff --git a/src/gallium/drivers/i915simple/i915_state.c b/src/gallium/drivers/i915simple/i915_state.c index 24d31ad740e..3d94b523660 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]);