From 34f9f518352789c1f3bec07416152ba24e3589e0 Mon Sep 17 00:00:00 2001 From: KonPet <45455208+KonPet@users.noreply.github.com> Date: Sun, 7 Nov 2021 11:50:15 +0100 Subject: [PATCH] Fix Render Batch Limit not being checked in DrawRectangleGradientEx() (#2111) --- src/rshapes.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rshapes.c b/src/rshapes.c index 9ad5a3d54862..3b661e2fe219 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();