diff options
author | Zack Middleton <zturtleman@gmail.com> | 2013-11-11 01:12:42 -0600 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-06-17 17:43:36 +0100 |
commit | 1efea34f7dc0afa21c1ddaa62705c8f4e6b76d9e (patch) | |
tree | aefee8a9e3fc054c873e48a419d2ac37cbb0631d /src/renderergl2 | |
parent | cc9b41cba3b6c44c1ef57e111e097a27416114e0 (diff) |
Fix comparing unsigned values to < 0 in gl2
Diffstat (limited to 'src/renderergl2')
-rw-r--r-- | src/renderergl2/tr_bsp.c | 4 |
1 files changed, 2 insertions, 2 deletions
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"); } |