public void Dispose() { try { Context.CheckError(); } finally { GL.BindVertexArray(array.Id); context.Dispose(); } }
public void Dispose() { Context.CheckError(); GL.UseProgram(Device.Program != null ? Device.Program.Id : 0); contextLock.Dispose(); }
public void Dispose() { sharedLock.Dispose(); }