Skip to content

Commit

Permalink
fix: remove useless double blit
Browse files Browse the repository at this point in the history
  • Loading branch information
decahedron1 committed Jan 21, 2024
1 parent 12929d1 commit 58b492a
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package io.pyke.vitri.finorza.inference.util;

import com.mojang.blaze3d.pipeline.RenderTarget;
import com.mojang.blaze3d.systems.RenderSystem;
import net.minecraft.client.Minecraft;
import org.jetbrains.annotations.NotNull;
import org.lwjgl.opengl.GL11;
Expand Down Expand Up @@ -34,9 +33,6 @@ public void setResizeSize(int resizeWidth, int resizeHeight) {
this.buffer.rewind();
}

RenderSystem.pushMatrix();
target.blitToScreen(this.width, this.height);
RenderSystem.popMatrix();
GL11.glReadPixels(0, 0, this.width, this.height, GL11.GL_RGB, GL11.GL_UNSIGNED_BYTE, this.buffer);

return this.buffer;
Expand Down

0 comments on commit 58b492a

Please sign in to comment.