rendering cleanup
This commit is contained in:
parent
1d937b466d
commit
3ae27fc27f
48 changed files with 365 additions and 978 deletions
|
@ -21,7 +21,7 @@ public class TextureUtil
|
|||
{
|
||||
private static final IntBuffer BUFFER = ByteBuffer.allocateDirect(4194304 << 2).order(ByteOrder.nativeOrder()).asIntBuffer();
|
||||
public static final DynamicTexture MISSING = new DynamicTexture(16, 16);
|
||||
public static final int[] MISSING_DATA = MISSING.getTextureData();
|
||||
public static final int[] MISSING_DATA = MISSING.getData();
|
||||
|
||||
public static void uploadTexture(int[] data, int w, int h, int x, int y)
|
||||
{
|
||||
|
@ -75,12 +75,6 @@ public class TextureUtil
|
|||
{
|
||||
// GlState.deleteTexture(id); //TODO: check needed
|
||||
GlState.bindTexture(id);
|
||||
|
||||
// SKC.glTexParameteri(SKC.GL_TEXTURE_2D, SKC.GL_TEXTURE_MAX_LEVEL, 0);
|
||||
// SKC.glTexParameterf(SKC.GL_TEXTURE_2D, SKC.GL_TEXTURE_MIN_LOD, 0.0F);
|
||||
// SKC.glTexParameterf(SKC.GL_TEXTURE_2D, SKC.GL_TEXTURE_MAX_LOD, 0.0F);
|
||||
// SKC.glTexParameterf(SKC.GL_TEXTURE_2D, SKC.GL_TEXTURE_LOD_BIAS, 0.0F);
|
||||
|
||||
GL11.nglTexImage2D(GL11.GL_TEXTURE_2D, 0, GL11.GL_RGBA, width, height, 0, GL12.GL_BGRA, GL12.GL_UNSIGNED_INT_8_8_8_8_REV, NULL);
|
||||
}
|
||||
|
||||
|
@ -130,6 +124,6 @@ public class TextureUtil
|
|||
System.arraycopy(l < k ? aint1 : aint, 0, MISSING_DATA, 16 * l + k, k);
|
||||
}
|
||||
|
||||
MISSING.updateDynamicTexture();
|
||||
MISSING.updateTexture();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue