Jelajahi Sumber

win-capture: avoid multiple definitions of data

At link time unless they are defined static they will conflict
martell 11 tahun lalu
induk
melakukan
c5fa22ae93

+ 1 - 1
plugins/win-capture/graphics-hook/d3d10-capture.cpp

@@ -54,7 +54,7 @@ struct d3d10_data {
 	};
 };
 
-struct d3d10_data data = {};
+static struct d3d10_data data = {};
 
 void d3d10_free(void)
 {

+ 1 - 1
plugins/win-capture/graphics-hook/d3d11-capture.cpp

@@ -55,7 +55,7 @@ struct d3d11_data {
 	};
 };
 
-struct d3d11_data data = {};
+static struct d3d11_data data = {};
 
 void d3d11_free(void)
 {