Removing static dependecy on  opengl content.