Skip to content

Commit c37f3f5

Browse files
authored
sokol: restore Linux GL 4.1 default (fix the X11/EGL context creation regression for Ubuntu 20.04 on older integrated GPUs, similar to 765cb7cfb6) (#26849)
1 parent 2794059 commit c37f3f5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎thirdparty/sokol/sokol_app.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4036,7 +4036,7 @@ _SOKOL_PRIVATE sapp_desc _sapp_desc_defaults(const sapp_desc *desc) {
40364036
#if defined(_SAPP_APPLE)
40374037
res.gl.minor_version = 1;
40384038
#else
4039-
res.gl.minor_version = 3;
4039+
res.gl.minor_version = 1;
40404040
#endif
40414041
#elif defined(SOKOL_GLES3)
40424042
res.gl.major_version = 3;

‎vlib/sokol/sapp/sapp_state_linux.v‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ fn sapp_desc_defaults(desc &Desc) Desc {
319319
}
320320
if res.gl.major_version == 0 {
321321
res.gl.major_version = 4
322-
res.gl.minor_version = 3
322+
res.gl.minor_version = 1
323323
}
324324
if res.clipboard_size == 0 {
325325
res.clipboard_size = 8192

0 commit comments

Comments
 (0)