From: Luca Barbieri Date: Mon, 22 Feb 2010 12:22:24 +0000 (+0100) Subject: nvfx: draw: make swtnl draw_elements actually work. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a174db480b9dbe3ae3475ce0cf4b3591234e8f05;p=mesa.git nvfx: draw: make swtnl draw_elements actually work. It was totally broken: the index buffer was passed as NULL! --- diff --git a/src/gallium/drivers/nvfx/nvfx_vbo.c b/src/gallium/drivers/nvfx/nvfx_vbo.c index 54369f9b64e..257087f8f63 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; }