Check Render Batch Limit in DrawRectangleGradientEx()

This commit is contained in:
KonPet 2021-11-06 19:05:59 +01:00
parent 23a208e8e7
commit 1d87c42972

View File

@ -741,6 +741,8 @@ void DrawRectangleGradientH(int posX, int posY, int width, int height, Color col
// NOTE: Colors refer to corners, starting at top-lef corner and counter-clockwise
void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4)
{
rlCheckRenderBatchLimit(4);
rlSetTexture(texShapes.id);
rlPushMatrix();