summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorKonPet <[email protected]>2021-11-07 11:50:15 +0100
committerGitHub <[email protected]>2021-11-07 11:50:15 +0100
commit34f9f518352789c1f3bec07416152ba24e3589e0 (patch)
tree7365c18be3636befbf7317fe5391d496390cd992 /src
parent9e6133bb098b0e77c4cdd30b95b1f2f27ecb7f2c (diff)
downloadraylib-34f9f518352789c1f3bec07416152ba24e3589e0.tar.gz
raylib-34f9f518352789c1f3bec07416152ba24e3589e0.zip
Fix Render Batch Limit not being checked in DrawRectangleGradientEx() (#2111)
Diffstat (limited to 'src')
-rw-r--r--src/rshapes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rshapes.c b/src/rshapes.c
index 9ad5a3d5..3b661e2f 100644
--- a/src/rshapes.c
+++ b/src/rshapes.c
@@ -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();