Browse Source

libobs: Fix missing pair of GS_DEBUG_MARKER

The conditional branch added by 4fe6803fe resulted GS_DEBUG_MARKER_END
is not called when the branch condition is failed.
Norihiro Kamae 3 years ago
parent
commit
c42047cb68
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libobs/obs-display.c

+ 2 - 2
libobs/obs-display.c

@@ -250,10 +250,10 @@ void render_display(struct obs_display *display)
 
 		render_display_end();
 
-		GS_DEBUG_MARKER_END();
-
 		gs_present();
 	}
+
+	GS_DEBUG_MARKER_END();
 }
 
 void obs_display_set_enabled(obs_display_t *display, bool enable)