internal static void Unbind(GraphicsContext ctx, TextureUnit textureUnit) { if (ctx.Extensions.SamplerObjects_ARB) { // Associate sampler to texture unit Gl.BindSampler(textureUnit.Index, InvalidObjectName); } }
internal void Bind(GraphicsContext ctx, TextureUnit textureUnit) { if (ctx.Extensions.SamplerObjects_ARB) { // Associate sampler to texture unit Gl.BindSampler(textureUnit.Index, ObjectName); // Update sampler parameters TexParameters(Parameters); } }