Remove unused `sampler` in `Pipeline`
This commit is contained in:
parent
47f10dffd9
commit
212b57617e
|
@ -7,7 +7,6 @@ use glow::HasContext;
|
||||||
use glyph_brush::rusttype::{point, Rect};
|
use glyph_brush::rusttype::{point, Rect};
|
||||||
|
|
||||||
pub struct Pipeline {
|
pub struct Pipeline {
|
||||||
sampler: <glow::Context as HasContext>::Sampler,
|
|
||||||
program: <glow::Context as HasContext>::Program,
|
program: <glow::Context as HasContext>::Program,
|
||||||
vertex_array: <glow::Context as HasContext>::VertexArray,
|
vertex_array: <glow::Context as HasContext>::VertexArray,
|
||||||
instances: <glow::Context as HasContext>::Buffer,
|
instances: <glow::Context as HasContext>::Buffer,
|
||||||
|
@ -23,9 +22,6 @@ impl Pipeline {
|
||||||
cache_width: u32,
|
cache_width: u32,
|
||||||
cache_height: u32,
|
cache_height: u32,
|
||||||
) -> Pipeline {
|
) -> Pipeline {
|
||||||
let sampler =
|
|
||||||
unsafe { gl.create_sampler().expect("Create glyph sampler") };
|
|
||||||
|
|
||||||
let cache = unsafe { Cache::new(gl, cache_width, cache_height) };
|
let cache = unsafe { Cache::new(gl, cache_width, cache_height) };
|
||||||
|
|
||||||
let program = unsafe {
|
let program = unsafe {
|
||||||
|
@ -45,7 +41,6 @@ impl Pipeline {
|
||||||
unsafe { create_instance_buffer(gl, Instance::INITIAL_AMOUNT) };
|
unsafe { create_instance_buffer(gl, Instance::INITIAL_AMOUNT) };
|
||||||
|
|
||||||
Pipeline {
|
Pipeline {
|
||||||
sampler,
|
|
||||||
program,
|
program,
|
||||||
cache,
|
cache,
|
||||||
vertex_array,
|
vertex_array,
|
||||||
|
|
Loading…
Reference in New Issue