gles2: pre-multiply alpha and fix blending function

This commit is contained in:
Ilia Bozhinov 2018-05-18 20:05:49 +03:00
parent 98088e78df
commit 47ffd0e184
2 changed files with 4 additions and 7 deletions

View file

@ -42,7 +42,7 @@ static void gles2_begin(struct wlr_renderer *wlr_renderer, uint32_t width,
// enable transparency
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
// XXX: maybe we should save output projection and remove some of the need
// for users to sling matricies themselves