Improve check

This commit is contained in:
Luke Benstead 2018-09-15 17:41:58 +01:00
parent 6aadc1124f
commit e36f561ec0

View File

@ -182,7 +182,7 @@ void clipTriangleStrip2(AlignedVector* vertices, uint32_t offset, uint8_t fladeS
ClipVertex* v3 = vertex;
/* Skip ahead if we don't have a complete triangle yet */
if(v1->flags == VERTEX_CMD_EOL || v2->flags == VERTEX_CMD_EOL) {
if(v1->flags != VERTEX_CMD || v2->flags != VERTEX_CMD) {
triangle = -1;
continue;
}