UI: Fix preview rendering order
The spacing helpers were being rendered above the preview safe areas.
This commit is contained in:
parent
2f2fc33f91
commit
bb34315f90
1 changed files with 3 additions and 3 deletions
|
|
@ -4447,6 +4447,9 @@ void OBSBasic::RenderMain(void *data, uint32_t cx, uint32_t cy)
|
|||
|
||||
window->ui->preview->DrawSceneEditing();
|
||||
|
||||
if (window->drawSpacingHelpers)
|
||||
window->ui->preview->DrawSpacingHelpers();
|
||||
|
||||
uint32_t targetCX = window->previewCX;
|
||||
uint32_t targetCY = window->previewCY;
|
||||
|
||||
|
|
@ -4460,9 +4463,6 @@ void OBSBasic::RenderMain(void *data, uint32_t cx, uint32_t cy)
|
|||
RenderSafeAreas(window->rightLine, targetCX, targetCY);
|
||||
}
|
||||
|
||||
if (window->drawSpacingHelpers)
|
||||
window->ui->preview->DrawSpacingHelpers();
|
||||
|
||||
/* --------------------------------------- */
|
||||
|
||||
gs_projection_pop();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue