From 23e0165f285601c94f0b7d14a0a0b352fa5d5ee8 Mon Sep 17 00:00:00 2001 From: Kobata Date: Mon, 6 May 2013 00:51:46 -0400 Subject: [PATCH] Render preview using GL_NEAREST instead of GL_LINEAR --- src/itemrender/client/KeybindRenderInventoryBlock.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/itemrender/client/KeybindRenderInventoryBlock.java b/src/itemrender/client/KeybindRenderInventoryBlock.java index 4d225b4..a9facd3 100644 --- a/src/itemrender/client/KeybindRenderInventoryBlock.java +++ b/src/itemrender/client/KeybindRenderInventoryBlock.java @@ -53,8 +53,8 @@ public KeybindRenderInventoryBlock() { // Set our texture up, empty. GL11.glBindTexture(GL11.GL_TEXTURE_2D, textureID); - GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_LINEAR); - GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_LINEAR); + GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_NEAREST); + GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_NEAREST); GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_S, GL12.GL_CLAMP_TO_EDGE); GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_T, GL12.GL_CLAMP_TO_EDGE); GL11.glTexImage2D(GL11.GL_TEXTURE_2D, 0, GL11.GL_RGBA, RENDER_TEXTURE_SIZE, RENDER_TEXTURE_SIZE, 0, GL12.GL_BGRA,