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,