Auto merge of #418 - pcwalton:resize-clear, r=pcwalton

Initialize resized mask textures to rgba(0, 0, 0, 0), not rgba(0, 0, 0, 1).

Partially addresses #405.
This commit is contained in:
bors-servo 2020-07-27 20:08:25 -04:00 committed by GitHub
commit 4c8699a5e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1062,7 +1062,7 @@ impl<D> RendererCore<D> where D: Device {
viewport: RectI::new(Vector2I::default(), new_size), viewport: RectI::new(Vector2I::default(), new_size),
options: RenderOptions { options: RenderOptions {
clear_ops: ClearOps { 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() ..ClearOps::default()
}, },
..RenderOptions::default() ..RenderOptions::default()