From 8c837a9e50c29e66bdf5bd7ea2fd15b1a7d5d598 Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Mon, 29 Apr 2019 15:12:34 -0400
Subject: [PATCH] Use separators.

---
 GenericJoint.java |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/GenericJoint.java b/GenericJoint.java
index 90f9509..ab83012 100644
--- a/GenericJoint.java
+++ b/GenericJoint.java
@@ -330,12 +330,14 @@
             e.printStackTrace();
         }
             
-            display.GetGL().glPushMatrix();
+            //display.GetGL().glPushMatrix();
+            display.PushMatrix(LA.Identity, 1);
             Vector3f v = ragdolls.get(0).bodies[0].worldTransform.origin;
      //       display.GetGL().glTranslatef(-v.x,0,-v.z);
         
         super.DrawNode(display, root, selected);
-            display.GetGL().glPopMatrix();
+            //display.GetGL().glPopMatrix();
+            display.PopMatrix(LA.Identity);
         
 //        assert(bRep != null);
         
@@ -453,7 +455,7 @@
     
     public void renderme(iCameraPane display)
     {
-        GL gl = display!=null?display.GetGL():null;
+        GL gl = display!=null?display.GetGL0():null;
 
         // gl0 = gl;
         if (GetDynamicsWorld() != null)
@@ -798,7 +800,7 @@
 
     public void drawCube(iCameraPane display, float extent)
     {
-        GL gl = display.GetGL();
+        GL gl = display.GetGL0();
 
         extent = extent * 0.5f;
 
@@ -1524,7 +1526,7 @@
 
     public void drawSphere(iCameraPane display, float radius, int slices, int stacks)
     {
-        GL gl = display.GetGL();
+        GL gl = display.GetGL0();
 
         sphereKey.radius = radius;
         Integer glList = sphereDisplayLists.get(sphereKey);
@@ -1596,7 +1598,7 @@
 
     public void drawCylinder(iCameraPane display, float radius, float halfHeight, int upAxis)
     {
-        GL gl = display.GetGL();
+        GL gl = display.GetGL0();
 
         gl.glPushMatrix();
         switch (upAxis)

--
Gitblit v1.6.2