Fix ScissorRect

- Breaks `TODO: Address anti-aliasing adjustments properly`
This commit is contained in:
Poly 2021-02-03 21:51:11 +01:00
parent c5d6ddc126
commit bd6b8304bd
1 changed files with 2 additions and 1 deletions

View File

@ -258,12 +258,13 @@ impl Pipeline {
); );
render_pass.set_vertex_buffer(0, self.vertices.slice(..)); render_pass.set_vertex_buffer(0, self.vertices.slice(..));
render_pass.set_vertex_buffer(1, self.instances.slice(..)); render_pass.set_vertex_buffer(1, self.instances.slice(..));
render_pass.set_scissor_rect( render_pass.set_scissor_rect(
bounds.x, bounds.x,
bounds.y, bounds.y,
bounds.width, bounds.width,
// TODO: Address anti-aliasing adjustments properly // TODO: Address anti-aliasing adjustments properly
bounds.height + 1, bounds.height,
); );
render_pass.draw_indexed( render_pass.draw_indexed(