public static void enableSharedContext ( ) throws SlickException { try { SHARED_DRAWABLE = new Pbuffer ( 64 , 64 , new PixelFormat ( 8 , 0 , 0 ) , null ) ; } catch ( LWJGLException e ) { throw new SlickException ( "Unable to create the pbuffer used for shard context, buffers not supported" , e ) ; } }
Enable shared OpenGL context . After calling this all containers created will shared a single parent context