summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2013-11-11 01:12:42 -0600
committerTim Angus <tim@ngus.net>2014-06-17 17:43:36 +0100
commit1efea34f7dc0afa21c1ddaa62705c8f4e6b76d9e (patch)
treeaefee8a9e3fc054c873e48a419d2ac37cbb0631d
parentcc9b41cba3b6c44c1ef57e111e097a27416114e0 (diff)
Fix comparing unsigned values to < 0 in gl2
-rw-r--r--src/renderergl2/tr_bsp.c4
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");
}