Normand Briere
2019-08-28 47745d8ade7238a188f7ab78eaf5e8a269d96fdd
Composite.java
....@@ -401,7 +401,6 @@
401401 {
402402 child = (Object3D) e.nextElement();
403403 }
404
-
405404 }
406405
407406 void createEditWindow(GroupEditor callee, boolean newWindow) //, boolean root)
....@@ -790,6 +789,8 @@
790789
791790 void draw(ClickInfo info, int level, boolean select)
792791 {
792
+ new Exception().printStackTrace();
793
+
793794 ClickInfo newInfo = new ClickInfo();
794795 newInfo.flags = info.flags;
795796 newInfo.bounds = info.bounds;
....@@ -867,15 +868,29 @@
867868 tex = GetTextures();
868869 }
869870
871
+ boolean failedPigment = false;
872
+ boolean failedBump = false;
873
+
870874 try
871875 {
872
- display.BindTextures(tex, texres);
876
+ display.BindPigmentTexture(tex, texres);
873877 }
874878 catch (Exception e)
875879 {
876
- System.err.println("FAILED: " + this);
880
+ // System.err.println("FAILED: " + this);
881
+ failedPigment = true;
877882 }
878
-
883
+
884
+ try
885
+ {
886
+ display.BindBumpTexture(tex, texres);
887
+ }
888
+ catch (Exception e)
889
+ {
890
+ //System.err.println("FAILED: " + this);
891
+ failedBump = true;
892
+ }
893
+
879894 if (//true) // new NORMAND
880895 touched || softtouched)
881896 {
....@@ -937,7 +952,11 @@
937952 }
938953 }
939954
940
- display.ReleaseTextures(tex);
955
+ if (!failedBump)
956
+ display.ReleaseBumpTexture(tex);
957
+
958
+ if (!failedPigment)
959
+ display.ReleasePigmentTexture(tex);
941960 }
942961
943962 void Reset0()