diff options
author | Julien Gouesse <[email protected]> | 2013-04-26 00:42:58 +0200 |
---|---|---|
committer | Julien Gouesse <[email protected]> | 2013-04-26 00:42:58 +0200 |
commit | 27ee15947fe711815fdf29a1933e5c1c7549bad9 (patch) | |
tree | afa152020d709294a42e642b4a5fe0e54b0a3f79 /ardor3d-jogl/src/main/java | |
parent | 9af437d8b795cbd45d2cdc85c853025c2237ea89 (diff) |
Allows to control the creation of the renderer in the canvas renderer
Diffstat (limited to 'ardor3d-jogl/src/main/java')
-rw-r--r-- | ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/JoglCanvasRenderer.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/JoglCanvasRenderer.java b/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/JoglCanvasRenderer.java index da235c7..ac5b136 100644 --- a/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/JoglCanvasRenderer.java +++ b/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/JoglCanvasRenderer.java @@ -124,6 +124,11 @@ public class JoglCanvasRenderer implements CanvasRenderer { return new JoglContextCapabilities(_context.getGL()); } + @Override + public JoglRenderer createRenderer() { + return new JoglRenderer(); + } + @MainThread public void init(final DisplaySettings settings, final boolean doSwap) { _doSwap = doSwap; @@ -148,7 +153,7 @@ public class JoglCanvasRenderer implements CanvasRenderer { ContextManager.addContext(_context, _currentContext); ContextManager.switchContext(_context); - _renderer = new JoglRenderer(); + _renderer = createRenderer(); if (settings.getSamples() != 0 && caps.isMultisampleSupported()) { final GL gl = GLContext.getCurrentGL(); |