Normand Briere
2019-04-24 07750666120cf38c7ad4f3a3a583a8c4d582bb0e
GenericJoint.java
....@@ -330,12 +330,14 @@
330330 e.printStackTrace();
331331 }
332332
333
- display.GetGL().glPushMatrix();
333
+ //display.GetGL().glPushMatrix();
334
+ display.PushMatrix(LA.Identity, 1);
334335 Vector3f v = ragdolls.get(0).bodies[0].worldTransform.origin;
335336 // display.GetGL().glTranslatef(-v.x,0,-v.z);
336337
337338 super.DrawNode(display, root, selected);
338
- display.GetGL().glPopMatrix();
339
+ //display.GetGL().glPopMatrix();
340
+ display.PopMatrix(LA.Identity);
339341
340342 // assert(bRep != null);
341343
....@@ -453,7 +455,7 @@
453455
454456 public void renderme(iCameraPane display)
455457 {
456
- GL gl = display!=null?display.GetGL():null;
458
+ GL gl = display!=null?display.GetGL0():null;
457459
458460 // gl0 = gl;
459461 if (GetDynamicsWorld() != null)
....@@ -798,7 +800,7 @@
798800
799801 public void drawCube(iCameraPane display, float extent)
800802 {
801
- GL gl = display.GetGL();
803
+ GL gl = display.GetGL0();
802804
803805 extent = extent * 0.5f;
804806
....@@ -1524,7 +1526,7 @@
15241526
15251527 public void drawSphere(iCameraPane display, float radius, int slices, int stacks)
15261528 {
1527
- GL gl = display.GetGL();
1529
+ GL gl = display.GetGL0();
15281530
15291531 sphereKey.radius = radius;
15301532 Integer glList = sphereDisplayLists.get(sphereKey);
....@@ -1596,7 +1598,7 @@
15961598
15971599 public void drawCylinder(iCameraPane display, float radius, float halfHeight, int upAxis)
15981600 {
1599
- GL gl = display.GetGL();
1601
+ GL gl = display.GetGL0();
16001602
16011603 gl.glPushMatrix();
16021604 switch (upAxis)