mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-04-05 07:04:43 +00:00
GL: fixed fixed_size
This commit is contained in:
@@ -546,6 +546,9 @@ static void gl_reconfigure_screen(struct state_gl *s, struct video_desc desc)
|
||||
if (!s->fixed_size || s->first_run) {
|
||||
glut_resize_window(s->fs, desc.height, s->aspect, s->window_size_factor);
|
||||
s->first_run = false;
|
||||
} else {
|
||||
// s->aspect might have changed so we may want to run this to reflect it
|
||||
gl_resize(glutGet(GLUT_WINDOW_WIDTH), glutGet(GLUT_WINDOW_HEIGHT));
|
||||
}
|
||||
|
||||
glUseProgram(0);
|
||||
|
||||
Reference in New Issue
Block a user