From e66abb780d28cde57d9d05598d0f872424292fbf Mon Sep 17 00:00:00 2001 From: "Sha..om" Date: Fri, 13 Sep 2013 01:15:25 +0000 Subject: [PATCH] * Respect the JmeContext.Type for OffscreenSurface value when the JmeSystem gets a request for a context git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10773 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/desktop/com/jme3/system/JmeDesktopSystem.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/src/desktop/com/jme3/system/JmeDesktopSystem.java b/engine/src/desktop/com/jme3/system/JmeDesktopSystem.java index 7bcd1c261..a377a21c6 100644 --- a/engine/src/desktop/com/jme3/system/JmeDesktopSystem.java +++ b/engine/src/desktop/com/jme3/system/JmeDesktopSystem.java @@ -191,6 +191,9 @@ public class JmeDesktopSystem extends JmeSystemDelegate { case Canvas: ctxClazz = (Class) Class.forName("com.jme3.system.jogl.JoglNewtCanvas"); break; + case OffscreenSurface: + ctxClazz = (Class) Class.forName("com.jme3.system.jogl.JoglOffscreenBuffer"); + break; default: throw new IllegalArgumentException("Unsupported context type " + type); }