Fix Render Batch Limit not being checked in DrawRectangleGradientEx() (#2111)

This commit is contained in:
KonPet 2021-11-07 11:50:15 +01:00 committed by GitHub
parent 9e6133bb09
commit 34f9f51835
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();