fixed opengl issues and added swap files to gitignore