diff options
| -rw-r--r-- | src/shapes.c | 2 |
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(); |
