mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-29 16:05:59 +01:00
Merge pull request #58 from acrisci/feature/enable-gl-blending
enable gl blending
This commit is contained in:
commit
3c12a32d1f
1 changed files with 5 additions and 0 deletions
|
@ -83,6 +83,11 @@ static void wlr_gles2_begin(struct wlr_renderer_state *state,
|
||||||
int32_t width = output->width;
|
int32_t width = output->width;
|
||||||
int32_t height = output->height;
|
int32_t height = output->height;
|
||||||
GL_CALL(glViewport(0, 0, width, 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
|
// Note: maybe we should save output projection and remove some of the need
|
||||||
// for users to sling matricies themselves
|
// for users to sling matricies themselves
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue