summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rtextures.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rtextures.c b/src/rtextures.c
index d1e14db7..77f40ac5 100644
--- a/src/rtextures.c
+++ b/src/rtextures.c
@@ -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();