diff --git a/src/rlgl.h b/src/rlgl.h index 309b64909..b97ca18eb 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -1451,7 +1451,7 @@ void rlBegin(int mode) if (RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].mode != mode) { int currentTexture = RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].textureId; - if (RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].vertexCount > 0) + if (RLGL.currentBatch->draws[RLGL.currentBatch->drawCounter - 1].vertexCount > 0) { // Make sure current RLGL.currentBatch->draws[i].vertexCount is aligned a multiple of 4, // that way, following QUADS drawing will keep aligned with index processing