mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-08-02 15:32:16 +00:00
batch 2.3 enabling back optimizations
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user