* 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
experimental
Sha..om 11 years ago
parent 55ab8f5d30
commit e66abb780d
  1. 3
      engine/src/desktop/com/jme3/system/JmeDesktopSystem.java

@ -191,6 +191,9 @@ public class JmeDesktopSystem extends JmeSystemDelegate {
case Canvas: case Canvas:
ctxClazz = (Class<? extends JmeContext>) Class.forName("com.jme3.system.jogl.JoglNewtCanvas"); ctxClazz = (Class<? extends JmeContext>) Class.forName("com.jme3.system.jogl.JoglNewtCanvas");
break; break;
case OffscreenSurface:
ctxClazz = (Class<? extends JmeContext>) Class.forName("com.jme3.system.jogl.JoglOffscreenBuffer");
break;
default: default:
throw new IllegalArgumentException("Unsupported context type " + type); throw new IllegalArgumentException("Unsupported context type " + type);
} }

Loading…
Cancel
Save