libobs: Remove display GPU markers without draws

master
jpark37 2022-08-06 21:52:23 -07:00 committed by Jim
parent a392aa52cc
commit fb146fa370
1 changed files with 4 additions and 4 deletions

View File

@ -220,8 +220,6 @@ void render_display(struct obs_display *display)
if (!display || !display->enabled)
return;
GS_DEBUG_MARKER_BEGIN(GS_DEBUG_COLOR_DISPLAY, "obs_display");
/* -------------------------------------------- */
pthread_mutex_lock(&display->draw_info_mutex);
@ -237,6 +235,8 @@ void render_display(struct obs_display *display)
/* -------------------------------------------- */
if (render_display_begin(display, cx, cy, update_color_space)) {
GS_DEBUG_MARKER_BEGIN(GS_DEBUG_COLOR_DISPLAY, "obs_display");
pthread_mutex_lock(&display->draw_callbacks_mutex);
for (size_t i = 0; i < display->draw_callbacks.num; i++) {
@ -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)