Skip to content

Commit

Permalink
libobs: Fix adapter index not getting applied to resets
Browse files Browse the repository at this point in the history
  • Loading branch information
jp9000 committed Nov 22, 2022
1 parent dc7a202 commit 02d20e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libobs/obs.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,6 @@ 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");
Expand Down Expand Up @@ -1401,6 +1399,8 @@ 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:
Expand Down

0 comments on commit 02d20e9

Please sign in to comment.