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 năm trước cách đây
mục cha
commit
c42047cb68
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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();
 		render_display_end();
 
 
-		GS_DEBUG_MARKER_END();
-
 		gs_present();
 		gs_present();
 	}
 	}
+
+	GS_DEBUG_MARKER_END();
 }
 }
 
 
 void obs_display_set_enabled(obs_display_t *display, bool enable)
 void obs_display_set_enabled(obs_display_t *display, bool enable)