sharpgl anti aliasing

I follow a tutorial from, and I can not get anti aliasing to work. I tried this code and it does nothing. Is there another way to do anti aliasing? Any help is appreciated, thanks.


Was your framebuffer created with multisample ?
From, before enabling multisample:

glfwWindowHint(GLFW_SAMPLES, 4);

How do you create your window ?