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,
|
||||
const region_t *reg_op, double alpha) {
|
||||
glBlendFunc(GL_ONE, GL_CONSTANT_COLOR);
|
||||
glBlendColor((GLclampf)alpha, (GLclampf)alpha, (GLclampf)alpha, (GLclampf)alpha);
|
||||
// Result color = 0 (GL_ZERO) + alpha (GL_CONSTANT_ALPHA) * original color
|
||||
glBlendFunc(GL_ZERO, GL_CONSTANT_ALPHA);
|
||||
glBlendColor(0, 0, 0, (GLclampf)alpha);
|
||||
GLuint fbo;
|
||||
glGenFramebuffers(1, &fbo);
|
||||
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, fbo);
|
||||
|
|
Loading…
Reference in New Issue