libobs: Add obs_render_main_texture

(Note: This commit also modifies UI and test)

This makes it so that main preview panes are rendered with the main
output texture rather than re-rendering the main view.  The view will
render all objects again, whereas the output texture will be a single
texture render of the same exact thing.

Also fixes some abnormal artifacting when scaling the main preview pane.
This commit is contained in:
jp9000
2018-01-01 18:33:44 -08:00
parent 2f577c1b71
commit 7f6cf97bd7
10 changed files with 51 additions and 12 deletions

View File

@@ -150,7 +150,7 @@ static HWND CreateTestWindow(HINSTANCE instance)
static void RenderWindow(void *data, uint32_t cx, uint32_t cy)
{
obs_render_main_view();
obs_render_main_texture();
UNUSED_PARAMETER(data);
UNUSED_PARAMETER(cx);