Fix comparing unsigned values to < 0 in gl2
This commit is contained in:
parent
93be2655f8
commit
a53e7c3074
1 changed files with 2 additions and 2 deletions
|
@ -746,7 +746,7 @@ static void ParseFace( dsurface_t *ds, drawVert_t *verts, float *hdrVertColors,
|
||||||
{
|
{
|
||||||
tri[j] = LittleLong(indexes[i + j]);
|
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");
|
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]);
|
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");
|
ri.Error(ERR_DROP, "Bad index in face surface");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue