internal virtual void FramebufferTexture2D(int attachement, int target, int texture, int level = 0, int samples = 0)
{
if (samples > 0 && this.GLFramebufferTexture2DMultisample != null)
this.GLFramebufferTexture2DMultisample(All.Framebuffer, (All)attachement, (All)target, texture, level, samples);
else
GL.FramebufferTexture2D(FramebufferTarget.Framebuffer, (FramebufferSlot)attachement, (TextureTarget)target, texture, level);
GraphicsExtensions.CheckGLError();
}