From 9f3299c6890c2c0329f7d38d445ee912e1e89458 Mon Sep 17 00:00:00 2001 From: phil Date: Sun, 20 Jan 2019 12:11:28 +1300 Subject: deprecated features comment update to note tex coord generation is ignored --- src/main/java/org/jogamp/java3d/Jogl2es2DEPPipeline.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jogamp/java3d/Jogl2es2DEPPipeline.java b/src/main/java/org/jogamp/java3d/Jogl2es2DEPPipeline.java index 7e4cccf..b9d8066 100644 --- a/src/main/java/org/jogamp/java3d/Jogl2es2DEPPipeline.java +++ b/src/main/java/org/jogamp/java3d/Jogl2es2DEPPipeline.java @@ -33,7 +33,7 @@ abstract class Jogl2es2DEPPipeline extends Pipeline + "Decaling is not supported. \n"// + "Model Clip is not supported and must be reimplemented in shaders \n"// + "QuadArray or IndexedQuadArray cannot be supported. \n"// - + "Texture Coordinate generation cannot be supported. \n" // + + "Texture Coordinate generation ignored, must be done in shaders. \n" // + "Texture Lod, Filter, Sharpen and Combine cannot be supported. \n"// + "Texture3D cannot be supported. \n"// + "Accum style anti-aliasing cannot be supported. \n"// -- cgit v1.2.3 From a04ae3226dd5432f31f272aba07fd846e4ef9447 Mon Sep 17 00:00:00 2001 From: phil Date: Sun, 9 Jun 2019 19:36:49 +1200 Subject: Pure Immediate Context usage fix The Renderer now wraps a use/release context call pair around any of the Pure Immediate mode operations in the main doWork loop. The renderer also now lazily creates a context on the first Pure Immediate mode call. GarphicsContext3D calls makeCxtCurrent in doClear in the case where a context had to be created (that creation call should in fact now be redundant but it is left in) --- .../java/org/jogamp/java3d/GraphicsContext3D.java | 4 +- src/main/java/org/jogamp/java3d/Renderer.java | 56 ++++++++++++++++++++++ 2 files changed, 59 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/jogamp/java3d/GraphicsContext3D.java b/src/main/java/org/jogamp/java3d/GraphicsContext3D.java index 2595d8c..c2c43f9 100644 --- a/src/main/java/org/jogamp/java3d/GraphicsContext3D.java +++ b/src/main/java/org/jogamp/java3d/GraphicsContext3D.java @@ -1730,7 +1730,9 @@ public int numSounds() { canvas3d.drawingSurfaceObject.unLock(); return; } - + // createNewContext finishes with a release, re-make current so the init calls below work + canvas3d.makeCtxCurrent(); + canvas3d.ctxTimeStamp = VirtualUniverse.mc.getContextTimeStamp(); canvas3d.screen.renderer.listOfCtxs.add(canvas3d.ctx); diff --git a/src/main/java/org/jogamp/java3d/Renderer.java b/src/main/java/org/jogamp/java3d/Renderer.java index 2899318..01958e3 100644 --- a/src/main/java/org/jogamp/java3d/Renderer.java +++ b/src/main/java/org/jogamp/java3d/Renderer.java @@ -620,7 +620,62 @@ ArrayList textureIDResourceTable = new ArrayList textureIDResourceTable = new ArrayList