From: Marek Olšák Date: Fri, 26 Feb 2010 21:34:09 +0000 (+0100) Subject: r300g: remove pointless "while" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dba7ad895333b9b0988239266a217edeebe6a3b3;p=mesa.git r300g: remove pointless "while" --- diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c index ec72d6c3b52..d604bfb7d75 100644 --- a/src/gallium/drivers/r300/r300_render.c +++ b/src/gallium/drivers/r300/r300_render.c @@ -123,7 +123,7 @@ static uint32_t r300_provoking_vertex_fixes(struct r300_context *r300, static boolean r300_reserve_cs_space(struct r300_context *r300, unsigned dwords) { - while (!r300->winsys->check_cs(r300->winsys, dwords)) { + if (!r300->winsys->check_cs(r300->winsys, dwords)) { r300->context.flush(&r300->context, 0, NULL); return TRUE; }