Skip to content

Commit

Permalink
Fix the default blending (#560)
Browse files Browse the repository at this point in the history
The Default::default of an Option is None, which disables blending. That
line was supposed to enable the default blending mode in golem, which is
a sensible blending default.
  • Loading branch information
ryanisaacg authored Jan 9, 2020
1 parent 4a49a6a commit 53758a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## In-development
- Fix the default blend mode: it should mix colors using their alphas
- [Breaking] Remove support for image types other than jpeg and png

## 0.4.0-alpha0
Expand Down
2 changes: 1 addition & 1 deletion src/graphics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl Graphics {
let vb = VertexBuffer::new(&ctx)?;
let eb = ElementBuffer::new(&ctx)?;
shader.bind();
ctx.set_blend_mode(Default::default());
ctx.set_blend_mode(Some(Default::default()));

Ok(Graphics {
ctx,
Expand Down

0 comments on commit 53758a2

Please sign in to comment.