Allow custom resolution for all video rendering modes
Remove tiled rendering Choose different rendering strategy based on video size and framebuffer support Make size of video writer queue configurable via system properties
This commit is contained in:
@@ -60,7 +60,7 @@ public class SpectatorRenderer {
|
||||
|
||||
float f1 = 0.07F;
|
||||
|
||||
if(this.mc.gameSettings.anaglyph) {
|
||||
if (renderPass != 2) {
|
||||
GlStateManager.translate((float)(-(renderPass * 2 - 1)) * f1, 0.0F, 0.0F);
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ public class SpectatorRenderer {
|
||||
GlStateManager.matrixMode(GL11.GL_MODELVIEW);
|
||||
GlStateManager.loadIdentity();
|
||||
|
||||
if(this.mc.gameSettings.anaglyph) {
|
||||
if (renderPass != 2) {
|
||||
GlStateManager.translate((float)(renderPass * 2 - 1) * 0.1F, 0.0F, 0.0F);
|
||||
}
|
||||
|
||||
@@ -540,4 +540,9 @@ public class SpectatorRenderer {
|
||||
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
GlStateManager.disableBlend();
|
||||
}
|
||||
|
||||
public void cleanup() {
|
||||
MinecraftForge.EVENT_BUS.unregister(this);
|
||||
FMLCommonHandler.instance().bus().unregister(this);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user