Skip to content

Commit

Permalink
Fix Render Batch Limit not being checked in DrawRectangleGradientEx() (
Browse files Browse the repository at this point in the history
  • Loading branch information
KonPet authored Nov 7, 2021
1 parent 9e6133b commit 34f9f51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rshapes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 34f9f51

Please sign in to comment.