batch 2.3 enabling back optimizations

This commit is contained in:
JuiceyDev 2026-03-27 11:00:36 +01:00 committed by Tropical
parent b7ac84ca79
commit 08ed9861b9
3 changed files with 5 additions and 3 deletions

View file

@ -35,6 +35,8 @@ static void restoreFixedFunctionStateAfterIggy() {
RenderManager.MatrixMode(GL_MODELVIEW);
RenderManager.Set_matrixDirty();
Minecraft::GetInstance()->textures->clearLastBoundId();
// 4jcraft: clears the last bound id, dumb fix but fine
}
void ConsoleUIController::init(S32 w, S32 h) {

View file

@ -1778,7 +1778,7 @@ void GameRenderer::renderSnowAndRain(float a) {
yy1 * s / 4.0f + ra * s);
#endif
t->offset(0, 0, 0);
t->end();
} else {
if (mode != 1) {
if (mode >= 0) t->end();

View file

@ -541,11 +541,11 @@ void Textures::bindTextureLayers(ResourceLocation* resource) {
}
void Textures::bind(int id) {
// if (id != lastBoundId)
if (id != lastBoundId)
{
if (id < 0) return;
glBindTexture(GL_TEXTURE_2D, id);
// lastBoundId = id;
lastBoundId = id;
}
}