summaryrefslogtreecommitdiffhomepage
path: root/src/rtextures.c
diff options
context:
space:
mode:
authorRay <[email protected]>2022-09-05 13:20:09 +0200
committerRay <[email protected]>2022-09-05 13:20:09 +0200
commit9996e328cb036b9bc63249bab77de5499ad2e4e8 (patch)
treef08a8bf2cc76da054afacefdf2e4424071e50a97 /src/rtextures.c
parentad5ffd78d616aafabf18458a25aa78c0850b3e3d (diff)
downloadraylib-9996e328cb036b9bc63249bab77de5499ad2e4e8.tar.gz
raylib-9996e328cb036b9bc63249bab77de5499ad2e4e8.zip
WARNING: BREAKING: Removed `rlCheckRenderBatchLimit()` requirement
Updated version to `rlgl 4.2`
Diffstat (limited to 'src/rtextures.c')
-rw-r--r--src/rtextures.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/rtextures.c b/src/rtextures.c
index 2490d1d1..24fbafd2 100644
--- a/src/rtextures.c
+++ b/src/rtextures.c
@@ -3362,8 +3362,6 @@ 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);
@@ -3494,8 +3492,6 @@ 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();
@@ -3639,8 +3635,6 @@ void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest,
// without crossing perimeter, points must be in anticlockwise order
void DrawTexturePoly(Texture2D texture, Vector2 center, Vector2 *points, Vector2 *texcoords, int pointCount, Color tint)
{
- rlCheckRenderBatchLimit((pointCount - 1)*4);
-
rlSetTexture(texture.id);
// Texturing is only supported on RL_QUADS