File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1473,15 +1473,17 @@ void rlBegin(int mode)
1473
1473
if (!rlCheckRenderBatchLimit (RLGL .currentBatch -> draws [RLGL .currentBatch -> drawCounter - 1 ].vertexAlignment ))
1474
1474
{
1475
1475
RLGL .State .vertexCounter += RLGL .currentBatch -> draws [RLGL .currentBatch -> drawCounter - 1 ].vertexAlignment ;
1476
+
1477
+ int currentTextureId = RLGL .currentBatch -> draws [RLGL .currentBatch -> drawCounter - 1 ].textureId ;
1476
1478
RLGL .currentBatch -> drawCounter ++ ;
1479
+ RLGL .currentBatch -> draws [RLGL .currentBatch -> drawCounter - 1 ].textureId = currentTextureId ;
1477
1480
}
1478
1481
}
1479
1482
1480
1483
if (RLGL .currentBatch -> drawCounter >= RL_DEFAULT_BATCH_DRAWCALLS ) rlDrawRenderBatch (RLGL .currentBatch );
1481
1484
1482
1485
RLGL .currentBatch -> draws [RLGL .currentBatch -> drawCounter - 1 ].mode = mode ;
1483
1486
RLGL .currentBatch -> draws [RLGL .currentBatch -> drawCounter - 1 ].vertexCount = 0 ;
1484
- RLGL .currentBatch -> draws [RLGL .currentBatch -> drawCounter - 1 ].textureId = RLGL .State .defaultTextureId ;
1485
1487
}
1486
1488
}
1487
1489
@@ -1670,7 +1672,9 @@ void rlSetTexture(unsigned int id)
1670
1672
{
1671
1673
RLGL .State .vertexCounter += RLGL .currentBatch -> draws [RLGL .currentBatch -> drawCounter - 1 ].vertexAlignment ;
1672
1674
1675
+ int currentMode = RLGL .currentBatch -> draws [RLGL .currentBatch -> drawCounter - 1 ].mode ;
1673
1676
RLGL .currentBatch -> drawCounter ++ ;
1677
+ RLGL .currentBatch -> draws [RLGL .currentBatch -> drawCounter - 1 ].mode = currentMode ;
1674
1678
}
1675
1679
}
1676
1680
You can’t perform that action at this time.
0 commit comments