Improves OpenGL error handling a bit and adds some more error dialogs.