Normand Briere
2019-07-21 5a546232b84ce65d8779d29e9171e7e2df013614
CameraPane.java
....@@ -7930,7 +7930,7 @@
79307930 String pigment = Object3D.GetPigment(tex);
79317931 String bump = Object3D.GetBump(tex);
79327932
7933
- if (!tex.equals(":") && !tex.equals(DEFAULT_TEXTURES))
7933
+ //if (!tex.equals(":") && !tex.equals(DEFAULT_TEXTURES))
79347934 {
79357935 // System.out.print("RELEASE +++++++++++++++ pigment = " + pigment);
79367936 // System.out.println("; bump = " + bump);
....@@ -7964,7 +7964,7 @@
79647964
79657965 String pigment = Object3D.GetPigment(tex);
79667966
7967
- if (!tex.equals(":") && !tex.equals(DEFAULT_TEXTURES))
7967
+ //if (!tex.equals(":") && !tex.equals(DEFAULT_TEXTURES))
79687968 {
79697969 // System.out.print("RELEASE +++++++++++++++ pigment = " + pigment);
79707970 // System.out.println("; bump = " + bump);
....@@ -7993,7 +7993,7 @@
79937993
79947994 String bump = Object3D.GetBump(tex);
79957995
7996
- if (!tex.equals(":") && !tex.equals(DEFAULT_TEXTURES))
7996
+ //if (!tex.equals(":") && !tex.equals(DEFAULT_TEXTURES))
79977997 {
79987998 // System.out.print("RELEASE +++++++++++++++ pigment = " + pigment);
79997999 // System.out.println("; bump = " + bump);
....@@ -8131,7 +8131,7 @@
81318131 usedtextures.put(pigment, pigment);
81328132 usedtextures.put(bump, bump);
81338133
8134
- if (!tex.equals(":") && !tex.equals(DEFAULT_TEXTURES))
8134
+ //if (!tex.equals(":") && !tex.equals(DEFAULT_TEXTURES))
81358135 {
81368136 // System.out.print("BIND +++++++++++++++ pigment = " + pigment);
81378137 // System.out.println("; bump = " + bump);
....@@ -8173,7 +8173,7 @@
81738173
81748174 usedtextures.put(pigment, pigment);
81758175
8176
- if (!tex.equals(":") && !tex.equals(DEFAULT_TEXTURES))
8176
+ //if (!tex.equals(":") && !tex.equals(DEFAULT_TEXTURES))
81778177 {
81788178 // System.out.print("BIND +++++++++++++++ pigment = " + pigment);
81798179 // System.out.println("; bump = " + bump);
....@@ -8206,7 +8206,7 @@
82068206
82078207 usedtextures.put(bump, bump);
82088208
8209
- if (!tex.equals(":") && !tex.equals(DEFAULT_TEXTURES))
8209
+ //if (!tex.equals(":") && !tex.equals(DEFAULT_TEXTURES))
82108210 {
82118211 // System.out.print("BIND +++++++++++++++ pigment = " + pigment);
82128212 // System.out.println("; bump = " + bump);
....@@ -8510,19 +8510,19 @@
85108510 return texture!=null?texture.texturedata:null;
85118511 }
85128512
8513
- com.sun.opengl.util.texture.Texture BindTexture(String tex, boolean bump, int resolution) throws Exception
8513
+ boolean BindTexture(String tex, boolean bump, int resolution) throws Exception
85148514 {
85158515 if (/*tex == null ||*/ ambientOcclusion ) // || !textureon)
85168516 {
85178517 return false;
85188518 }
85198519
8520
- boolean newtex = false;
8520
+ //boolean newtex = false;
85218521
85228522 com.sun.opengl.util.texture.Texture texture = GetTexture(tex, bump, resolution);
85238523
85248524 if (texture == null)
8525
- return texture;
8525
+ return false;
85268526 /**/
85278527
85288528 if (textureon || tex.equals("DEFAULT_TEXTURE") || tex.equals("DEFAULT_TEXTURE_BUMP") || tex.equals("WHITE_NOISE")) // || tex.equals("IMMORTAL"))
....@@ -8549,7 +8549,7 @@
85498549 texture.setTexParameteri(GetGL().GL_TEXTURE_WRAP_S, GetGL().GL_REPEAT);
85508550 texture.setTexParameteri(GetGL().GL_TEXTURE_WRAP_T, GetGL().GL_REPEAT);
85518551
8552
- return newtex;
8552
+ return true; // Warning: not used.
85538553 }
85548554
85558555 ShadowBuffer shadowPBuf;