mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-07-29 00:26:14 -04:00
UI: Fix preview rendering order
The spacing helpers were being rendered above the preview safe areas.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user