The proposed change works fine. Here is the updated patch. Iago Toral Quiroga (1): i965: Make sure we always compute valid index bounds before drawing. src/mesa/drivers/dri/i965/brw_draw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 1.8.3.2