Skip to content

Commit

Permalink
Auto merge of rust-windowing#418 - pcwalton:resize-clear, r=pcwalton
Browse files Browse the repository at this point in the history
Initialize resized mask textures to rgba(0, 0, 0, 0), not rgba(0, 0, 0, 1).

Partially addresses rust-windowing#405.
  • Loading branch information
bors-servo authored Jul 28, 2020
2 parents 0736957 + 31abe4b commit 4c8699a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer/src/gpu/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ impl<D> RendererCore<D> where D: Device {
viewport: RectI::new(Vector2I::default(), new_size),
options: RenderOptions {
clear_ops: ClearOps {
color: Some(ColorF::new(0.0, 0.0, 0.0, 1.0)),
color: Some(ColorF::new(0.0, 0.0, 0.0, 0.0)),
..ClearOps::default()
},
..RenderOptions::default()
Expand Down

0 comments on commit 4c8699a

Please sign in to comment.