Browse Source

Revert "libobs: Check effect mutex exists before destroying it"

This reverts commit c2c47b1169b272498bdd6ffb1416f6d518200059.
Palana 10 năm trước cách đây
mục cha
commit
f981b58b43
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      libobs/graphics/graphics.c

+ 1 - 2
libobs/graphics/graphics.c

@@ -213,8 +213,7 @@ void gs_destroy(graphics_t *graphics)
 	}
 	}
 
 
 	pthread_mutex_destroy(&graphics->mutex);
 	pthread_mutex_destroy(&graphics->mutex);
-	if (graphics->effect_mutex)
-		pthread_mutex_destroy(&graphics->effect_mutex);
+	pthread_mutex_destroy(&graphics->effect_mutex);
 	da_free(graphics->matrix_stack);
 	da_free(graphics->matrix_stack);
 	da_free(graphics->viewport_stack);
 	da_free(graphics->viewport_stack);
 	da_free(graphics->blend_state_stack);
 	da_free(graphics->blend_state_stack);