From 1efea34f7dc0afa21c1ddaa62705c8f4e6b76d9e Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Mon, 11 Nov 2013 01:12:42 -0600 Subject: Fix comparing unsigned values to < 0 in gl2 --- src/renderergl2/tr_bsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/renderergl2') diff --git a/src/renderergl2/tr_bsp.c b/src/renderergl2/tr_bsp.c index 797ac354..26d7fa50 100644 --- a/src/renderergl2/tr_bsp.c +++ b/src/renderergl2/tr_bsp.c @@ -747,7 +747,7 @@ static void ParseFace( dsurface_t *ds, drawVert_t *verts, float *hdrVertColors, { tri[j] = LittleLong(indexes[i + j]); - if(tri[j] < 0 || tri[j] >= numVerts) + if(tri[j] >= numVerts) { ri.Error(ERR_DROP, "Bad index in face surface"); } @@ -991,7 +991,7 @@ static void ParseTriSurf( dsurface_t *ds, drawVert_t *verts, float *hdrVertColor { tri[j] = LittleLong(indexes[i + j]); - if(tri[j] < 0 || tri[j] >= numVerts) + if(tri[j] >= numVerts) { ri.Error(ERR_DROP, "Bad index in face surface"); } -- cgit