summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-05-21 18:57:45 +0200
committerraysan5 <[email protected]>2020-05-21 18:57:45 +0200
commitcdbe1b6190d71b1db4c9d3b31d952c897f188622 (patch)
treeefae95b6dbc35dfac6f7c591f13a6f0e24e71b22 /src
parentb3eea3d322df136b8b53019c4258893a56f3d395 (diff)
downloadraylib-cdbe1b6190d71b1db4c9d3b31d952c897f188622.tar.gz
raylib-cdbe1b6190d71b1db4c9d3b31d952c897f188622.zip
Review buffer limits on rectangle drawing
Diffstat (limited to 'src')
-rw-r--r--src/shapes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shapes.c b/src/shapes.c
index 66e0f55c..ed132481 100644
--- a/src/shapes.c
+++ b/src/shapes.c
@@ -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();