Adding method to set openGL version