Added retrieval of OpenGL error messages.