nvfx: draw: make swtnl draw_elements actually work.

It was totally broken: the index buffer was passed as NULL!
This commit is contained in:
Luca Barbieri
2010-02-22 13:22:24 +01:00
committed by Younes Manton
parent 152dffd3e1
commit a174db480b
+1 -1
View 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;
}