From: Christoph Bumiller Date: Wed, 2 Mar 2011 14:41:19 +0000 (+0100) Subject: nv50: allow accidentally disabled IB index buffers again X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dbdbbce066de9af2856c207f5de8be7f10c74597;p=mesa.git nv50: allow accidentally disabled IB index buffers again Must have sneaked in from debugging. --- diff --git a/src/gallium/drivers/nv50/nv50_vbo.c b/src/gallium/drivers/nv50/nv50_vbo.c index e94a2b6fa3d..85cf9bd8a61 100644 --- a/src/gallium/drivers/nv50/nv50_vbo.c +++ b/src/gallium/drivers/nv50/nv50_vbo.c @@ -536,7 +536,7 @@ nv50_draw_elements(struct nv50_context *nv50, boolean shorten, nv50->state.index_bias = index_bias; } - if (nouveau_resource_mapped_by_gpu(nv50->idxbuf.buffer) && 0) { + if (nouveau_resource_mapped_by_gpu(nv50->idxbuf.buffer)) { struct nv04_resource *res = nv04_resource(nv50->idxbuf.buffer); unsigned offset = res->offset + nv50->idxbuf.offset;