Browse Source

obs-text, win-capture: Do not use premultiplied alpha

jp9000 7 years ago
parent
commit
93cc09f078
2 changed files with 2 additions and 2 deletions
  1. 1 1
      plugins/obs-text/gdiplus/obs-text.cpp
  2. 1 1
      plugins/win-capture/game-capture.c

+ 1 - 1
plugins/obs-text/gdiplus/obs-text.cpp

@@ -812,7 +812,7 @@ inline void TextSource::Render()
 	if (!tex)
 		return;
 
-	gs_effect_t *effect = obs_get_base_effect(OBS_EFFECT_PREMULTIPLIED_ALPHA);
+	gs_effect_t *effect = obs_get_base_effect(OBS_EFFECT_DEFAULT);
 	gs_technique_t *tech  = gs_effect_get_technique(effect, "Draw");
 
 	gs_technique_begin(tech);

+ 1 - 1
plugins/win-capture/game-capture.c

@@ -1771,7 +1771,7 @@ static void game_capture_render(void *data, gs_effect_t *effect)
 		return;
 
 	effect = obs_get_base_effect(gc->config.allow_transparency ?
-			OBS_EFFECT_PREMULTIPLIED_ALPHA : OBS_EFFECT_OPAQUE);
+			OBS_EFFECT_DEFAULT : OBS_EFFECT_OPAQUE);
 
 	while (gs_effect_loop(effect, "Draw")) {
 		obs_source_draw(gc->texture, 0, 0, 0, 0,