diff options
author | Jakob Bornecrantz <[email protected]> | 2008-04-24 17:07:45 +0200 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2008-04-24 17:10:11 +0200 |
commit | cefa367b5d909f26d943101efb042562de778c5f (patch) | |
tree | 9e9f0295e34ca25080b579b1fd6687355d3b16df /src | |
parent | d712eea074303812b1be0e79b302d7b9f49a09a8 (diff) |
i915: Fix for wrong texture in texobj with VBUF
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/i915simple/i915_state.c | 3 |
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 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]); |