Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
InnocentusLime committed Sep 12, 2024
1 parent d591e1e commit d821c27
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/quad_gl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ pub enum DrawMode {
pub struct GlPipeline(usize);

struct DrawCall {
// vertices: Vec<Vertex>,
// indices: Vec<u16>,

vertices_count: usize,
indices_count: usize,
vertices_start: usize,
Expand All @@ -49,8 +46,6 @@ impl DrawCall {
pipeline: GlPipeline,
uniforms: Option<Vec<u8>>,
render_pass: Option<RenderPass>,
max_vertices: usize,
max_indices: usize,
) -> DrawCall {
DrawCall {
vertices_start: 0,
Expand All @@ -68,14 +63,6 @@ impl DrawCall {
capture: false,
}
}

// fn vertices(&self) -> &[Vertex] {
// &self.vertices[0..self.vertices_count]
// }

// fn indices(&self) -> &[u16] {
// &self.indices[0..self.indices_count]
// }
}

struct MagicSnapshotter {
Expand Down Expand Up @@ -927,8 +914,6 @@ impl QuadGl {
pip,
uniforms.clone(),
self.state.render_pass,
self.max_vertices,
self.max_indices,
));
}
self.draw_calls[self.draw_calls_count].texture = self.state.texture;
Expand Down

0 comments on commit d821c27

Please sign in to comment.