diff options
| author | raysan5 <[email protected]> | 2020-05-21 18:57:45 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-05-21 18:57:45 +0200 |
| commit | cdbe1b6190d71b1db4c9d3b31d952c897f188622 (patch) | |
| tree | efae95b6dbc35dfac6f7c591f13a6f0e24e71b22 /src | |
| parent | b3eea3d322df136b8b53019c4258893a56f3d395 (diff) | |
| download | raylib-cdbe1b6190d71b1db4c9d3b31d952c897f188622.tar.gz raylib-cdbe1b6190d71b1db4c9d3b31d952c897f188622.zip | |
Review buffer limits on rectangle drawing
Diffstat (limited to 'src')
| -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(); |
