diff options
author | David Robillard <d@drobilla.net> | 2020-04-04 13:36:43 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-04-04 13:36:43 +0200 |
commit | 84222d61aaf9416cca0a0eb695e20623441b698b (patch) | |
tree | 38fd51d2dcf02f269d191c30ea805b064bf191f0 /examples/pugl_gl3_demo.c | |
parent | 454773477b9075e36b98c346d61f6c35578c7a11 (diff) | |
download | pugl-84222d61aaf9416cca0a0eb695e20623441b698b.tar.gz pugl-84222d61aaf9416cca0a0eb695e20623441b698b.tar.bz2 pugl-84222d61aaf9416cca0a0eb695e20623441b698b.zip |
Shader Demo: Explicitly set up alpha blending
Diffstat (limited to 'examples/pugl_gl3_demo.c')
-rw-r--r-- | examples/pugl_gl3_demo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/pugl_gl3_demo.c b/examples/pugl_gl3_demo.c index c49ed3d..a2d6094 100644 --- a/examples/pugl_gl3_demo.c +++ b/examples/pugl_gl3_demo.c @@ -100,7 +100,8 @@ onConfigure(PuglView* view, double width, double height) (void)view; glEnable(GL_BLEND); - glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ZERO); + glBlendEquationSeparate(GL_FUNC_ADD, GL_FUNC_ADD); glClearColor(0.0f, 0.0f, 0.0f, 1.0f); glViewport(0, 0, (int)width, (int)height); } |