Drop unused vertex array object

This commit is contained in:
Aaron Fenyes 2025-04-21 20:06:54 -07:00
parent 8a82fe457f
commit 3590b1ad4e

View file

@ -272,10 +272,6 @@ pub fn Display() -> View {
let layer_threshold_loc = ctx.get_uniform_location(&program, "layer_threshold"); let layer_threshold_loc = ctx.get_uniform_location(&program, "layer_threshold");
let debug_mode_loc = ctx.get_uniform_location(&program, "debug_mode"); 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 // set the vertex positions
const VERTEX_CNT: usize = 6; const VERTEX_CNT: usize = 6;
let positions: [f32; 3*VERTEX_CNT] = [ let positions: [f32; 3*VERTEX_CNT] = [