nvfx: draw: make swtnl draw_elements actually work.
authorLuca Barbieri <luca@luca-barbieri.com>
Mon, 22 Feb 2010 12:22:24 +0000 (13:22 +0100)
committerYounes Manton <younes.m@gmail.com>
Mon, 15 Mar 2010 04:03:04 +0000 (00:03 -0400)
It was totally broken: the index buffer was passed as NULL!

src/gallium/drivers/nvfx/nvfx_vbo.c

index 54369f9b64eef1a0ae8856586252bd2e29c2e4b8..257087f8f636e7b507ce1eda5c5167cedc5f147b 100644 (file)
@@ -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;
        }