Review buffer limits on rectangle drawing
This commit is contained in:
parent
b3eea3d322
commit
cdbe1b6190
1 changed files with 2 additions and 0 deletions
|
@ -618,6 +618,8 @@ void DrawRectangleRec(Rectangle rec, Color color)
|
|||
// Draw a color-filled rectangle with pro parameters
|
||||
void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color)
|
||||
{
|
||||
if (rlCheckBufferLimit(4)) rlglDraw();
|
||||
|
||||
rlEnableTexture(GetShapesTexture().id);
|
||||
|
||||
rlPushMatrix();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue