libobs: Add gs_begin_frame for duplicators

We really shouldn't be resetting duplicator state as part of gs_flush.
gs_begin_scene is not ideal because it is called twice per frame, and
only after duplicators have been ticked. Even though it makes no
user-facing difference, it makes more logical sense to reset at the top
of the frame than the bottom.
This commit is contained in:
jpark37
2019-10-10 21:06:01 -07:00
parent 9fa1ec3ae9
commit ade65df2aa
8 changed files with 34 additions and 3 deletions

View File

@@ -929,6 +929,12 @@ void device_copy_texture(gs_device_t *device, gs_texture_t *dst,
device_copy_texture_region(device, dst, 0, 0, src, 0, 0, 0, 0);
}
void device_begin_frame(gs_device_t *device)
{
/* does nothing */
UNUSED_PARAMETER(device);
}
void device_begin_scene(gs_device_t *device)
{
clear_textures(device);