Fix Render Batch Limit not being checked in DrawRectangleGradientEx()
This commit is contained in:
parent
9e6133bb09
commit
05f541058a
|
|
@ -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
|
// 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)
|
void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4)
|
||||||
{
|
{
|
||||||
|
rlCheckRenderBatchLimit(4);
|
||||||
|
|
||||||
rlSetTexture(texShapes.id);
|
rlSetTexture(texShapes.id);
|
||||||
|
|
||||||
rlPushMatrix();
|
rlPushMatrix();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user