mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
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
|
@ -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…
Reference in a new issue