diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-08-10 08:41:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-10 08:41:11 -0400 |
commit | 3c12a32d1fc29cf06c36717100db41bf6d19ec3a (patch) | |
tree | fbe636c1870674b7b4a9b9370517fa7bcbf393b7 /render/gles2 | |
parent | 888986b03858a28eace4ded39034eaa001321976 (diff) | |
parent | 49e97857c7f3bc4b8563ce5118a9384024f0fc56 (diff) |
Merge pull request #58 from acrisci/feature/enable-gl-blending
enable gl blending
Diffstat (limited to 'render/gles2')
-rw-r--r-- | render/gles2/renderer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index 7d0db8b3..703edd46 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -83,6 +83,11 @@ static void wlr_gles2_begin(struct wlr_renderer_state *state, int32_t width = output->width; int32_t height = output->height; GL_CALL(glViewport(0, 0, width, height)); + + // enable transparency + GL_CALL(glEnable(GL_BLEND)); + GL_CALL(glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)); + // Note: maybe we should save output projection and remove some of the need // for users to sling matricies themselves } |