From 98896326eb94666451b7e419becfb5d721840313 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Mon, 10 Jun 2019 20:36:03 -0400 Subject: [PATCH] Fix shadow in light mode --- 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