obs-text, win-capture: Do not use premultiplied alpha
This commit is contained in:
parent
ac651aa492
commit
93cc09f078
@ -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);
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user