Made openGL preparings