mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
i965: return false when the function fails, not succeeds
This commit is contained in:
parent
55c1894d0a
commit
531efbab75
1 changed files with 2 additions and 3 deletions
|
|
@ -170,9 +170,8 @@ static boolean brw_try_draw_elements( struct pipe_context *pipe,
|
|||
if (brw->state.dirty.brw)
|
||||
brw_validate_state( brw );
|
||||
|
||||
if (brw_emit_prim(brw,
|
||||
index_buffer != NULL,
|
||||
start, count))
|
||||
if (!brw_emit_prim(brw, index_buffer != NULL,
|
||||
start, count))
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue