I'm trying to implement multisampling in OpenTK but when i enable it there's no diffrence between no antyaliasing and multisampling.
Here's a code in OnRenderFrame for multisampling :
protected override void OnRenderFrame(FrameEventArgs e)
{
base.OnRenderFrame(e);
GL.Viewport(0, 0, Width, Height);
GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit);
GL.Enable(EnableCap.DepthTest);
GL.Clear(ClearBufferMask.AccumBufferBit);
shaders[activeShader].EnableVertexAttribArrays();
int indiceat = 0;
GL.Enable(EnableCap.Multisample);
GL.Hint(HintTarget.MultisampleFilterHintNv,HintMode.Nicest);
foreach (Volume v in objects)
{
GL.ActiveTexture(TextureUnit.Texture0);
GL.BindTexture(TextureTarget.Texture2D, v.TextureID);
GL.UniformMatrix4(shaders[activeShader].GetUniform("modelview"), false, ref v.ModelViewProjectionMatrix);
GL.DrawElements(BeginMode.Triangles, v.IndiceCount, DrawElementsType.UnsignedInt, indiceat * sizeof(uint));
indiceat += v.IndiceCount;
}
}

