From d098087b06729011e5cc625a9f157c016167dd2e Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 29 Jun 2014 11:43:52 -0700 Subject: [PATCH] Set default blend function to srcalpa/invsrcalpha --- libobs/graphics/graphics.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libobs/graphics/graphics.c b/libobs/graphics/graphics.c index a6e607f04..a67ac5f57 100644 --- a/libobs/graphics/graphics.c +++ b/libobs/graphics/graphics.c @@ -104,6 +104,8 @@ static bool graphics_init(struct graphics_subsystem *graphics) if (pthread_mutex_init(&graphics->mutex, NULL) != 0) return false; + graphics->exports.device_blendfunction(graphics->device, + GS_BLEND_SRCALPHA, GS_BLEND_INVSRCALPHA); graphics->exports.device_leavecontext(graphics->device); gs_init_image_deps();