Created attachment 37772 [details]
Diff w.r.t MesaGlut 7.8.2
In glut_dstr.c there is logic based on GLX_SGIS_multisample that also ought to support the ARB version: GLX_ARB_multisample.
Recent Nvidia drivers don't seem to support the SGIS extension, but _do_ support the ARB extension.
Tested with the following GLUT call on Linux:
glutInitDisplayString("rgb double depth samples~4");
Without the patch glutCreateWindow fails.
Some more observation in support of this patch:
Note that glut_win.c already does support GLX_ARB_multisample.
However, glut_overlay doesn't seem to.
Thanks. I've applied your patch and updated glut_overlay.c too.