From f868664f7e7626f651e6ade9c9f6863851ef43b7 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Wed, 06 Nov 2019 23:12:57 -0500 Subject: [PATCH] Dangerous "reset". --- GLShapeDrawer.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GLShapeDrawer.java b/GLShapeDrawer.java index 38fb421..ccf72d9 100644 --- a/GLShapeDrawer.java +++ b/GLShapeDrawer.java @@ -142,7 +142,7 @@ //System.out.println("shape="+shape+" type="+BroadphaseNativeTypes.forValue(shape.getShapeType())); - GL gl = display.GetGL(); + GL gl = display.GetGL0(); gl.glPushMatrix(); trans.getOpenGLMatrix(glMat); @@ -552,7 +552,7 @@ static 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); @@ -624,7 +624,7 @@ static 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