i915: Fix for wrong texture in texobj with VBUF
authorJakob Bornecrantz <jakob@tungstengraphics.com>
Thu, 24 Apr 2008 15:07:45 +0000 (17:07 +0200)
committerJakob Bornecrantz <jakob@tungstengraphics.com>
Thu, 24 Apr 2008 15:10:11 +0000 (17:10 +0200)
src/gallium/drivers/i915simple/i915_state.c

index 24d31ad740e658b0f900bdfa891b9358e6d90ee8..3d94b52366004bacccae22b951f6b19b2eeb527a 100644 (file)
@@ -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]);