Added the correct way of initializing GL render context