Bläddra i källkod

Verify there is enough space in the batch for the npatch geometry. (#2401)

pull/2403/head
Jeffery Myers 3 år sedan
committed by GitHub
förälder
incheckning
c65efecf0a
Ingen känd nyckel hittad för denna signaturen i databasen GPG-nyckel ID: 4AEE18F83AFDEB23
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. +2
    -0
      src/rtextures.c

+ 2
- 0
src/rtextures.c Visa fil

@ -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();

Laddar…
Avbryt
Spara