Check the result from SDL_GL_SetAttribute().
Print the function name as error message.