1
0
Эх сурвалжийг харах

Revert "libobs: Fix adapter index not getting applied to resets"

This reverts commit 02d20e9f36c21069f59269ea94bf393231217e34.
Ryan Foster 2 жил өмнө
parent
commit
8dde4bab1e
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      libobs/obs.c

+ 2 - 2
libobs/obs.c

@@ -477,6 +477,8 @@ static int obs_init_graphics(struct obs_video_info *ovi)
 		}
 	}
 
+	ovi->adapter = video->adapter_index;
+
 	gs_enter_context(video->graphics);
 
 	char *filename = obs_find_data_file("default.effect");
@@ -1411,8 +1413,6 @@ int obs_reset_video(struct obs_video_info *ovi)
 		}
 	}
 
-	ovi->adapter = obs->video.adapter_index;
-
 	const char *scale_type_name = "";
 	switch (ovi->scale_type) {
 	case OBS_SCALE_DISABLE: