From 212b57617efae058362e498d33dd526806724935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Mon, 18 May 2020 20:46:33 +0200 Subject: [PATCH] Remove unused `sampler` in `Pipeline` --- src/pipeline.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/pipeline.rs b/src/pipeline.rs index 31cda1e..fc235a2 100644 --- a/src/pipeline.rs +++ b/src/pipeline.rs @@ -7,7 +7,6 @@ use glow::HasContext; use glyph_brush::rusttype::{point, Rect}; pub struct Pipeline { - sampler: ::Sampler, program: ::Program, vertex_array: ::VertexArray, instances: ::Buffer, @@ -23,9 +22,6 @@ impl Pipeline { cache_width: u32, cache_height: u32, ) -> Pipeline { - let sampler = - unsafe { gl.create_sampler().expect("Create glyph sampler") }; - let cache = unsafe { Cache::new(gl, cache_width, cache_height) }; let program = unsafe { @@ -45,7 +41,6 @@ impl Pipeline { unsafe { create_instance_buffer(gl, Instance::INITIAL_AMOUNT) }; Pipeline { - sampler, program, cache, vertex_array,