Skip to content

Commit

Permalink
Use gr_context.flush_and_submit
Browse files Browse the repository at this point in the history
This properly submits everything to the GPU
  • Loading branch information
fredizzimo committed Jul 22, 2023
1 parent 61e18c4 commit 0f7ad8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/window/window_wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ impl WinitWindowWrapper {
self.renderer.draw_frame(self.skia_renderer.canvas(), dt);
{
tracy_gpu_zone!("skia flush");
self.skia_renderer.gr_context.flush(None);
self.skia_renderer.gr_context.flush_and_submit();
}
{
tracy_gpu_zone!("swap buffers");
Expand Down

0 comments on commit 0f7ad8f

Please sign in to comment.