Explorar el Código

Set default blend function to srcalpa/invsrcalpha

jp9000 hace 11 años
padre
commit
d098087b06
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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();