tmp
This commit is contained in:
parent
7de9494766
commit
36e9ccd5be
|
@ -1358,8 +1358,9 @@ static inline void gl_image_decouple(backend_t *base, struct gl_image *img) {
|
||||||
|
|
||||||
static void gl_image_apply_alpha(backend_t *base, struct gl_image *img,
|
static void gl_image_apply_alpha(backend_t *base, struct gl_image *img,
|
||||||
const region_t *reg_op, double alpha) {
|
const region_t *reg_op, double alpha) {
|
||||||
glBlendFunc(GL_ONE, GL_CONSTANT_COLOR);
|
// Result color = 0 (GL_ZERO) + alpha (GL_CONSTANT_ALPHA) * original color
|
||||||
glBlendColor((GLclampf)alpha, (GLclampf)alpha, (GLclampf)alpha, (GLclampf)alpha);
|
glBlendFunc(GL_ZERO, GL_CONSTANT_ALPHA);
|
||||||
|
glBlendColor(0, 0, 0, (GLclampf)alpha);
|
||||||
GLuint fbo;
|
GLuint fbo;
|
||||||
glGenFramebuffers(1, &fbo);
|
glGenFramebuffers(1, &fbo);
|
||||||
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, fbo);
|
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, fbo);
|
||||||
|
|
Loading…
Reference in New Issue