Originally Posted by debonair
as gl_samplerID is supported on after 4.0 versions, what would replace it?
You don't need it to access multisample textures. You only need it if you plan to do per-sample rasterization.
And while that is core in GL/GLSL 4.0, you can also get it through the ARB_sample_shading extension.