Skip to content

Commit

Permalink
More build fix\adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
Zakor Gyula committed Nov 19, 2019
1 parent 09c114a commit 0fca15c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webrender/src/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3937,6 +3937,7 @@ impl<B: hal::Backend> Renderer<B> {
self.device.set_scissor_rect(scissor_rect)
}

#[cfg(not(feature = "gl"))]
let mut last_rp;
if !alpha_batch_container.opaque_batches.is_empty()
&& !self.debug_flags.contains(DebugFlags::DISABLE_OPAQUE_PASS) {
Expand Down Expand Up @@ -4104,7 +4105,7 @@ impl<B: hal::Backend> Renderer<B> {
#[cfg(not(feature = "gl"))]
{
last_rp = last_batch && transit_to_present;
self.device.begin_render_pass(last_batch && transit_to_present);
self.device.begin_render_pass(last_rp);
}
}

Expand Down Expand Up @@ -5283,6 +5284,7 @@ impl<B: hal::Backend> Renderer<B> {

if self.enable_picture_caching {
#[cfg(not(feature = "gl"))] {
let total_draw_calls = results.stats.total_draw_calls;
if self.device.readback_supported {
self.composite(
&frame.composite_state,
Expand All @@ -5293,6 +5295,7 @@ impl<B: hal::Backend> Renderer<B> {
false,
);
}
results.stats.total_draw_calls = total_draw_calls;
}
self.composite(
&frame.composite_state,
Expand Down

0 comments on commit 0fca15c

Please sign in to comment.