Drop unused vertex array object
This commit is contained in:
parent
8a82fe457f
commit
3590b1ad4e
1 changed files with 0 additions and 4 deletions
|
@ -272,10 +272,6 @@ pub fn Display() -> View {
|
|||
let layer_threshold_loc = ctx.get_uniform_location(&program, "layer_threshold");
|
||||
let debug_mode_loc = ctx.get_uniform_location(&program, "debug_mode");
|
||||
|
||||
// create a vertex array and bind it to the graphics context
|
||||
let vertex_array = ctx.create_vertex_array().unwrap();
|
||||
ctx.bind_vertex_array(Some(&vertex_array));
|
||||
|
||||
// set the vertex positions
|
||||
const VERTEX_CNT: usize = 6;
|
||||
let positions: [f32; 3*VERTEX_CNT] = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue