소스 검색

Fix Render Batch Limit not being checked in DrawRectangleGradientEx() (#2111)

pull/2113/head
KonPet 3 년 전
committed by GitHub
부모
커밋
34f9f51835
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      src/rshapes.c

+ 2
- 0
src/rshapes.c 파일 보기

@ -741,6 +741,8 @@ void DrawRectangleGradientH(int posX, int posY, int width, int height, Color col
// NOTE: Colors refer to corners, starting at top-lef corner and counter-clockwise
void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4)
{
rlCheckRenderBatchLimit(4);
rlSetTexture(texShapes.id);
rlPushMatrix();

불러오는 중...
취소
저장