Browse Source

Set default blend function to srcalpa/invsrcalpha

jp9000 11 years ago
parent
commit
d098087b06
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libobs/graphics/graphics.c

+ 2 - 0
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();