mirror of
https://github.com/GTNewHorizons/Draconic-Evolution.git
synced 2026-10-25 20:22:19 +00:00
Move the bindTexture out of the display list (#107)
This commit is contained in:
1 parent
15b257d120
commit
6f183b615e
1 file changed
+2
-1
@@ -35,6 +35,7 @@ public class ModelRenderOBJ extends ModelRenderer {
|
|||||||
this.compileDisplayList(scale);
|
this.compileDisplayList(scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ResourceHandler.bindTexture(texture);
|
||||||
GL11.glTranslatef(this.offsetX, this.offsetY, this.offsetZ);
|
GL11.glTranslatef(this.offsetX, this.offsetY, this.offsetZ);
|
||||||
|
|
||||||
if (this.rotateAngleX == 0.0F && this.rotateAngleY == 0.0F && this.rotateAngleZ == 0.0F) {
|
if (this.rotateAngleX == 0.0F && this.rotateAngleY == 0.0F && this.rotateAngleZ == 0.0F) {
|
||||||
@@ -84,7 +85,6 @@ public class ModelRenderOBJ extends ModelRenderer {
|
|||||||
GL11.glNewList(this.displayList, GL11.GL_COMPILE);
|
GL11.glNewList(this.displayList, GL11.GL_COMPILE);
|
||||||
|
|
||||||
GL11.glPushMatrix();
|
GL11.glPushMatrix();
|
||||||
ResourceHandler.bindTexture(texture);
|
|
||||||
// scale = 1F/15F;
|
// scale = 1F/15F;
|
||||||
GL11.glScalef(scale, scale, scale);
|
GL11.glScalef(scale, scale, scale);
|
||||||
GL11.glRotatef(180, -1, 0, 1);
|
GL11.glRotatef(180, -1, 0, 1);
|
||||||
@@ -102,6 +102,7 @@ public class ModelRenderOBJ extends ModelRenderer {
|
|||||||
this.compileDisplayList(scale);
|
this.compileDisplayList(scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ResourceHandler.bindTexture(texture);
|
||||||
GL11.glPushMatrix();
|
GL11.glPushMatrix();
|
||||||
GL11.glTranslatef(this.rotationPointX * scale, this.rotationPointY * scale, this.rotationPointZ * scale);
|
GL11.glTranslatef(this.rotationPointX * scale, this.rotationPointY * scale, this.rotationPointZ * scale);
|
||||||
if (this.rotateAngleY != 0.0F) {
|
if (this.rotateAngleY != 0.0F) {
|
||||||
|
|||||||
Reference in new issue
Block a user