Move alignment code to obs_reset_video
It wasn't properly being set for the graphics textures as well, so it would end up causing SSE to crash due to alignmentmaster
parent
6346662f19
commit
524ff94912
|
@ -129,9 +129,6 @@ static bool obs_init_video(struct obs_video_info *ovi)
|
|||
struct video_output_info vi;
|
||||
int errorcode;
|
||||
|
||||
ovi->output_width &= 0xFFFFFFFC;
|
||||
ovi->output_height &= 0xFFFFFFFE;
|
||||
|
||||
make_video_info(&vi, ovi);
|
||||
errorcode = video_output_open(&video->video, &vi);
|
||||
|
||||
|
@ -357,6 +354,9 @@ bool obs_reset_video(struct obs_video_info *ovi)
|
|||
{
|
||||
struct obs_core_video *video = &obs->video;
|
||||
|
||||
ovi->output_width &= 0xFFFFFFFC;
|
||||
ovi->output_height &= 0xFFFFFFFE;
|
||||
|
||||
obs_free_video();
|
||||
|
||||
if (!ovi) {
|
||||
|
|
Loading…
Reference in New Issue