Skip to content

Commit 8a58665

Browse files
committed
Fix for incorrect alpha blending
1 parent 4b0ec17 commit 8a58665

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

obs-browser/browser-source-base.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ void BrowserSource::Impl::RenderCurrentTexture(gs_effect_t *effect)
6969

7070
if (activeTexture != nullptr) {
7171
gs_reset_blend_state();
72+
gs_blend_function(GS_BLEND_DSTALPHA, GS_BLEND_INVSRCALPHA);
7273
gs_effect_set_texture(
7374
gs_effect_get_param_by_name(effect, "image"),
7475
activeTexture);

0 commit comments

Comments
 (0)