summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nvfx/nvfx_vbo.c
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-02-22 13:22:24 +0100
committerYounes Manton <younes.m@gmail.com>2010-03-15 00:03:04 -0400
commita174db480b9dbe3ae3475ce0cf4b3591234e8f05 (patch)
tree0d31d9df59808d4f61de163b9fd987a0cefbe370 /src/gallium/drivers/nvfx/nvfx_vbo.c
parent152dffd3e196208a85148c4a2f7a9a6df44f3bff (diff)
nvfx: draw: make swtnl draw_elements actually work.
It was totally broken: the index buffer was passed as NULL!
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_vbo.c')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_vbo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_vbo.c b/src/gallium/drivers/nvfx/nvfx_vbo.c
index 54369f9b64..257087f8f6 100644
--- a/src/gallium/drivers/nvfx/nvfx_vbo.c
+++ b/src/gallium/drivers/nvfx/nvfx_vbo.c
@@ -473,7 +473,7 @@ nvfx_draw_elements(struct pipe_context *pipe,
idxbuf = nvfx_vbo_set_idxbuf(nvfx, indexBuffer, indexSize);
if (nvfx_force_swtnl(nvfx) || !nvfx_state_validate(nvfx)) {
- nvfx_draw_elements_swtnl(pipe, NULL, 0,
+ nvfx_draw_elements_swtnl(pipe, indexBuffer, indexSize,
mode, start, count);
return;
}