fixed FloatBuffer memory leaks and added opengl initialization to compile shaders only once
fixed FloatBuffer memory leaks and added opengl initialization to compile shaders only once