Browse Source

UI: Fix preview rendering order

The spacing helpers were being rendered above the preview
safe areas.
cg2121 2 years ago
parent
commit
bb34315f90
1 changed files with 3 additions and 3 deletions
  1. 3 3
      UI/window-basic-main.cpp

+ 3 - 3
UI/window-basic-main.cpp

@@ -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();