|
@@ -462,8 +462,6 @@ static int obs_init_graphics(struct obs_video_info *ovi)
|
|
bool success = true;
|
|
bool success = true;
|
|
int errorcode;
|
|
int errorcode;
|
|
|
|
|
|
- video->adapter_index = ovi->adapter;
|
|
|
|
-
|
|
|
|
errorcode =
|
|
errorcode =
|
|
gs_create(&video->graphics, ovi->graphics_module, ovi->adapter);
|
|
gs_create(&video->graphics, ovi->graphics_module, ovi->adapter);
|
|
if (errorcode != GS_SUCCESS) {
|
|
if (errorcode != GS_SUCCESS) {
|
|
@@ -477,8 +475,6 @@ static int obs_init_graphics(struct obs_video_info *ovi)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- ovi->adapter = video->adapter_index;
|
|
|
|
-
|
|
|
|
gs_enter_context(video->graphics);
|
|
gs_enter_context(video->graphics);
|
|
|
|
|
|
char *filename = obs_find_data_file("default.effect");
|
|
char *filename = obs_find_data_file("default.effect");
|
|
@@ -3104,12 +3100,3 @@ bool obs_weak_object_references_object(obs_weak_object_t *weak,
|
|
{
|
|
{
|
|
return weak && object && weak->object == object;
|
|
return weak && object && weak->object == object;
|
|
}
|
|
}
|
|
-
|
|
|
|
-/* this function is a hack for the annoying intel igpu + dgpu situation. I
|
|
|
|
- * guess. I don't care anymore. */
|
|
|
|
-EXPORT void obs_internal_set_adapter_idx_this_is_dumb(uint32_t adapter_idx)
|
|
|
|
-{
|
|
|
|
- if (!obs)
|
|
|
|
- return;
|
|
|
|
- obs->video.adapter_index = adapter_idx;
|
|
|
|
-}
|
|
|