From 917d2938fd3f9bd1745a3a955bb55b5ca124f8e4 Mon Sep 17 00:00:00 2001 From: phil Date: Mon, 31 Oct 2016 19:30:40 +1300 Subject: Bug 1334 - Java 3D 1.6 under Parallels fails j3dcore: avoid calls to glColor4f in material reset paths This causes crashes in the Parallels driver, possibly due to the calls occurring on a non-current glContext, this appears to not cause other issues as the glColor calls are always issued before rendering anyway and can avoid being reset here. --- src/main/java/org/jogamp/java3d/JoglPipeline.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/jogamp/java3d/JoglPipeline.java b/src/main/java/org/jogamp/java3d/JoglPipeline.java index 43eb579..d9cd032 100644 --- a/src/main/java/org/jogamp/java3d/JoglPipeline.java +++ b/src/main/java/org/jogamp/java3d/JoglPipeline.java @@ -6791,7 +6791,8 @@ void swapBuffers(Canvas3D cv, Context ctx, Drawable drawable) { if (VERBOSE) System.err.println("JoglPipeline.updateMaterialColor()"); GL2 gl = context(ctx).getGL().getGL2(); - gl.glColor4f(r, g, b, a); + // FIXME: Removed call to glColor4f because of segfault issues in Parallels Desktop driver + // gl.glColor4f(r, g, b, a); gl.glDisable(GL2.GL_LIGHTING); } @@ -7223,7 +7224,8 @@ void swapBuffers(Canvas3D cv, Context ctx, Drawable drawable) { GL2 gl = context(ctx).getGL().getGL2(); if (!enableLight) { - gl.glColor4f(r, g, b, a); + // FIXME: Removed call to glColor4f because of segfault issues in Parallels Desktop driver + // gl.glColor4f(r, g, b, a); } gl.glShadeModel(GL2.GL_SMOOTH); } -- cgit v1.2.3