浏览代码

Review buffer limits on rectangle drawing

pull/1262/head
raysan5 5 年前
父节点
当前提交
cdbe1b6190
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      src/shapes.c

+ 2
- 0
src/shapes.c 查看文件

@ -618,6 +618,8 @@ void DrawRectangleRec(Rectangle rec, Color color)
// Draw a color-filled rectangle with pro parameters // Draw a color-filled rectangle with pro parameters
void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color) void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color)
{ {
if (rlCheckBufferLimit(4)) rlglDraw();
rlEnableTexture(GetShapesTexture().id); rlEnableTexture(GetShapesTexture().id);
rlPushMatrix(); rlPushMatrix();

正在加载...
取消
保存