public void createContext(final ContextAttribs attribs, final Drawable shared_drawable) throws LWJGLException { synchronized ( GlobalLock.lock ) { this.context = new ContextGLES(this, attribs, shared_drawable != null ? ((DrawableGLES)shared_drawable).getContext() : null); this.shared_drawable = shared_drawable; } }