mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-08 02:46:28 +00:00
Added security check to avoid internal render batch overflow
This commit is contained in:
@@ -3237,6 +3237,8 @@ void DrawTexturePro(Texture2D texture, Rectangle source, Rectangle dest, Vector2
|
||||
bottomRight.y = y + (dx + dest.width)*sinRotation + (dy + dest.height)*cosRotation;
|
||||
}
|
||||
|
||||
rlCheckRenderBatchLimit(4); // Make sure there is enough free space on the batch buffer
|
||||
|
||||
rlSetTexture(texture.id);
|
||||
rlBegin(RL_QUADS);
|
||||
|
||||
|
Reference in New Issue
Block a user