r300g: remove pointless "while"
authorMarek Olšák <maraeo@gmail.com>
Fri, 26 Feb 2010 21:34:09 +0000 (22:34 +0100)
committerMarek Olšák <maraeo@gmail.com>
Sat, 27 Feb 2010 17:37:44 +0000 (18:37 +0100)
src/gallium/drivers/r300/r300_render.c

index ec72d6c3b52ecb23d426f32c6bc5aa86df7f86ac..d604bfb7d75f86c4cfe6d24a938472515a1e12f8 100644 (file)
@@ -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;
     }