diff options
author | phil <[email protected]> | 2019-06-09 20:21:20 +1200 |
---|---|---|
committer | phil <[email protected]> | 2019-06-09 20:21:20 +1200 |
commit | 54d37207423e46ea80975651910478baa8dd8421 (patch) | |
tree | 81480ac72e6c1f55950a24122d7494df2864ffbf /src/javax/media/j3d/GraphicsContext3D.java | |
parent | eab9c8934c3a2f311f308972ad337c6f81728764 (diff) |
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)
Diffstat (limited to 'src/javax/media/j3d/GraphicsContext3D.java')
-rw-r--r-- | src/javax/media/j3d/GraphicsContext3D.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/javax/media/j3d/GraphicsContext3D.java b/src/javax/media/j3d/GraphicsContext3D.java index 75b2d1d..b6eb1c5 100644 --- a/src/javax/media/j3d/GraphicsContext3D.java +++ b/src/javax/media/j3d/GraphicsContext3D.java @@ -1731,6 +1731,9 @@ public int numSounds() { 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); |