gallium/draw: forgot about PIPE_PRIM_LINE_STRIP_ADJACENCY
authorZack Rusin <zackr@vmware.com>
Tue, 3 Aug 2010 20:02:09 +0000 (16:02 -0400)
committerZack Rusin <zackr@vmware.com>
Tue, 3 Aug 2010 20:02:09 +0000 (16:02 -0400)
src/gallium/auxiliary/util/u_prim.h

index 63ddc864756554a615721bc681915c365fff982a..3c851f73401a4d6a244aa7affd4947954eff6b35 100644 (file)
@@ -113,6 +113,7 @@ static INLINE boolean u_trim_pipe_prim( unsigned pipe_prim, unsigned *nr )
       *nr -= (*nr % 4);
       break;
    case PIPE_PRIM_LINE_STRIP_ADJACENCY:
+      ok = (*nr >= 4);
       break;
    case PIPE_PRIM_TRIANGLES_ADJACENCY:
       ok = (*nr >= 6);