nvfx: draw: make swtnl draw_elements actually work.
It was totally broken: the index buffer was passed as NULL!
This commit is contained in:
committed by
Younes Manton
parent
152dffd3e1
commit
a174db480b
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user