Skip to content

Commit

Permalink
fix(client_core): 🐛 Fix potential blank render bug
Browse files Browse the repository at this point in the history
This bug was already mitigated on #2397 but this is the proper fix. Discovered by @nowak-pl
  • Loading branch information
zmerp committed Jan 15, 2025
1 parent 882f599 commit b4945dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions alvr/client_core/src/graphics/staging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ impl StagingRenderer {
ck!(gl.use_program(Some(self.program)));

ck!(gl.viewport(0, 0, self.viewport_size.x, self.viewport_size.y));
ck!(gl.disable(gl::SCISSOR_TEST));
ck!(gl.disable(gl::STENCIL_TEST));

for (i, framebuffer) in self.framebuffers.iter().enumerate() {
ck!(gl.bind_framebuffer(gl::DRAW_FRAMEBUFFER, Some(*framebuffer)));
Expand Down

0 comments on commit b4945dc

Please sign in to comment.