mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-25 07:18:52 -04:00
Reset blend state to default after drawing
This commit is contained in:
1 parent
57cfd4f991
commit
7dfb26eb31
3 files changed
+4
-1
No files matched your search
@@ -442,6 +442,8 @@ void XCompcapMain::render(effect_t effect)
|
||||
|
||||
gs_enable_blending(false);
|
||||
gs_draw_sprite(p->tex, 0, 0, 0);
|
||||
|
||||
gs_reset_blend_state();
|
||||
}
|
||||
|
||||
uint32_t XCompcapMain::width()
|
||||
|
||||
@@ -105,7 +105,6 @@ void xcursor_render(xcursor_t *data) {
|
||||
gs_enable_blending(True);
|
||||
gs_blendfunction(GS_BLEND_ONE, GS_BLEND_INVSRCALPHA);
|
||||
gs_draw_sprite(data->tex, 0, 0, 0);
|
||||
gs_enable_blending(False);
|
||||
|
||||
gs_matrix_pop();
|
||||
}
|
||||
|
||||
@@ -275,6 +275,8 @@ static void xshm_video_render(void *vptr, effect_t effect)
|
||||
|
||||
if (data->show_cursor)
|
||||
xcursor_render(data->cursor);
|
||||
|
||||
gs_reset_blend_state();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user