Skip to content

Commit

Permalink
Fix GL setting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauren Budorick committed Nov 29, 2017
1 parent 52358fb commit 53bae79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gl/value.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class DepthFunc extends ContextValue implements Value<DepthFuncType> {
}

class Blend extends ContextValue implements Value<boolean> {
static default() { return true; }
static default() { return false; }

set(v: boolean): void {
const gl = this.context.gl;
Expand Down
2 changes: 1 addition & 1 deletion src/render/painter.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class Painter {
// We are blending the new pixels *behind* the existing pixels. That way we can
// draw front-to-back and use then stencil buffer to cull opaque pixels early.
context.blend.set(true);
context.blendFunc.set([gl.LINES, gl.ONE_MINUS_SRC_ALPHA]);
context.blendFunc.set([gl.ONE, gl.ONE_MINUS_SRC_ALPHA]);

context.stencilTest.set(true);

Expand Down

0 comments on commit 53bae79

Please sign in to comment.