mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-07 06:43:11 +00:00
Verify there is enough space in the batch for the npatch geometry. (#2401)
This commit is contained in:
parent
9ecbc465a9
commit
c65efecf0a
@ -3471,6 +3471,8 @@ void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest,
|
||||
coordD.x = (nPatchInfo.source.x + nPatchInfo.source.width)/width;
|
||||
coordD.y = (nPatchInfo.source.y + nPatchInfo.source.height)/height;
|
||||
|
||||
rlCheckRenderBatchLimit(9 * 3 * 2); // Maxium number of verts that could happen
|
||||
|
||||
rlSetTexture(texture.id);
|
||||
|
||||
rlPushMatrix();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user