diff options
Diffstat (limited to 'ardor3d-jogl')
-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(); |