|
@ -1072,6 +1072,8 @@ void rlBegin(int mode) |
|
|
if (draws[drawsCounter - 1].mode == RL_LINES) draws[drawsCounter - 1].vertexAlignment = ((draws[drawsCounter - 1].vertexCount < 4)? draws[drawsCounter - 1].vertexCount : draws[drawsCounter - 1].vertexCount%4); |
|
|
if (draws[drawsCounter - 1].mode == RL_LINES) draws[drawsCounter - 1].vertexAlignment = ((draws[drawsCounter - 1].vertexCount < 4)? draws[drawsCounter - 1].vertexCount : draws[drawsCounter - 1].vertexCount%4); |
|
|
else if (draws[drawsCounter - 1].mode == RL_TRIANGLES) draws[drawsCounter - 1].vertexAlignment = ((draws[drawsCounter - 1].vertexCount < 4)? 1 : (4 - (draws[drawsCounter - 1].vertexCount%4))); |
|
|
else if (draws[drawsCounter - 1].mode == RL_TRIANGLES) draws[drawsCounter - 1].vertexAlignment = ((draws[drawsCounter - 1].vertexCount < 4)? 1 : (4 - (draws[drawsCounter - 1].vertexCount%4))); |
|
|
|
|
|
|
|
|
|
|
|
else draws[drawsCounter - 1].vertexAlignment = 0; |
|
|
|
|
|
|
|
|
if (rlCheckBufferLimit(draws[drawsCounter - 1].vertexAlignment)) rlglDraw(); |
|
|
if (rlCheckBufferLimit(draws[drawsCounter - 1].vertexAlignment)) rlglDraw(); |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
@ -1243,6 +1245,8 @@ void rlEnableTexture(unsigned int id) |
|
|
if (draws[drawsCounter - 1].mode == RL_LINES) draws[drawsCounter - 1].vertexAlignment = ((draws[drawsCounter - 1].vertexCount < 4)? draws[drawsCounter - 1].vertexCount : draws[drawsCounter - 1].vertexCount%4); |
|
|
if (draws[drawsCounter - 1].mode == RL_LINES) draws[drawsCounter - 1].vertexAlignment = ((draws[drawsCounter - 1].vertexCount < 4)? draws[drawsCounter - 1].vertexCount : draws[drawsCounter - 1].vertexCount%4); |
|
|
else if (draws[drawsCounter - 1].mode == RL_TRIANGLES) draws[drawsCounter - 1].vertexAlignment = ((draws[drawsCounter - 1].vertexCount < 4)? 1 : (4 - (draws[drawsCounter - 1].vertexCount%4))); |
|
|
else if (draws[drawsCounter - 1].mode == RL_TRIANGLES) draws[drawsCounter - 1].vertexAlignment = ((draws[drawsCounter - 1].vertexCount < 4)? 1 : (4 - (draws[drawsCounter - 1].vertexCount%4))); |
|
|
|
|
|
|
|
|
|
|
|
else draws[drawsCounter - 1].vertexAlignment = 0; |
|
|
|
|
|
|
|
|
if (rlCheckBufferLimit(draws[drawsCounter - 1].vertexAlignment)) rlglDraw(); |
|
|
if (rlCheckBufferLimit(draws[drawsCounter - 1].vertexAlignment)) rlglDraw(); |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
@ -4611,4 +4615,4 @@ int GetPixelDataSize(int width, int height, int format) |
|
|
} |
|
|
} |
|
|
#endif // RLGL_STANDALONE |
|
|
#endif // RLGL_STANDALONE |
|
|
|
|
|
|
|
|
#endif // RLGL_IMPLEMENTATION |
|
|
|
|
|
|
|
|
#endif // RLGL_IMPLEMENTATION |