[vlc-commits] [Git][videolan/vlc][master] vout/opengl: initialize the GL major version

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Tue Oct 20 11:11:50 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
1f7b9510 by Felix Paul Kühne at 2026-10-20T13:02:44+02:00
vout/opengl: initialize the GL major version

GL_MAJOR_VERSION is unsupported on OpenGL 2 contexts and left the
version uninitialized so the legacy macOS vout crashed on init.

- - - - -


1 changed file:

- modules/video_output/opengl/gl_api.c


Changes:

=====================================
modules/video_output/opengl/gl_api.c
=====================================
@@ -177,7 +177,7 @@ vlc_gl_api_Init(struct vlc_gl_api *api, vlc_gl_t *gl)
     GET_PROC_ADDR_OPTIONAL(ClientWaitSync);
 
     GL_ASSERT_NOERROR(&api->vt);
-    GLint version;
+    GLint version = 0;
     GLchar *glsl_version;
     api->vt.GetIntegerv(GL_MAJOR_VERSION, &version);
     glsl_version = (GLchar *) api->vt.GetString(GL_SHADING_LANGUAGE_VERSION);



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1f7b9510e272ae760068e455e6c9decd083f7277

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1f7b9510e272ae760068e455e6c9decd083f7277
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list