Verify there is enough space in the batch for the npatch geometry. (#2401)
This commit is contained in:
parent
9ecbc465a9
commit
c65efecf0a
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue