[Mesa-dev] [PATCH 11/11] r200: Fix probable thinko in r200EmitArrays

Johannes Obermayr johannesobermayr at gmx.de
Fri Jan 11 18:23:34 PST 2013


From: Adam Jackson <ajax at redhat.com>

Effectively this path would always assert.  Move the break statement to
the (probable) intended place.

Note: This is a candidate for the stable branches.

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 src/mesa/drivers/dri/r200/r200_maos_arrays.c |    3 ++-
 1 Datei geändert, 2 Zeilen hinzugefügt(+), 1 Zeile entfernt(-)

diff --git a/src/mesa/drivers/dri/r200/r200_maos_arrays.c b/src/mesa/drivers/dri/r200/r200_maos_arrays.c
index 973dcaf..d7607bc 100644
--- a/src/mesa/drivers/dri/r200/r200_maos_arrays.c
+++ b/src/mesa/drivers/dri/r200/r200_maos_arrays.c
@@ -166,8 +166,9 @@ void r200EmitArrays( struct gl_context *ctx, GLubyte *vimap_rev )
 	       /* fallthrough */
 	    case 4:
 	       vfmt0 |= R200_VTX_W1;
-	    break;
+	       /* fallthrough */
 	    }
+	    break;
 	 default:
 	    assert(0);
 	    emitsize = 0;
-- 
1.7.10.4



More information about the mesa-dev mailing list