Fix comparing unsigned values to < 0 in gl2

This commit is contained in:
Zack Middleton 2013-11-11 01:12:42 -06:00
parent 93be2655f8
commit a53e7c3074

View file

@ -746,7 +746,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");
}
@ -990,7 +990,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");
}