Fix GLAD bug where it wasn't reading OpenGL ES version correctly.

This commit is contained in:
Alberto Torres 2024-09-04 02:43:22 +02:00
parent 878137db71
commit d9778546b5
2 changed files with 6 additions and 6 deletions

View file

@ -16237,8 +16237,8 @@ proc findCoreGL(glVersion: string) =
version = version.replace(p)
break
var major = ord(glVersion[0]) - ord('0')
var minor = ord(glVersion[2]) - ord('0')
var major = ord(version[0]) - ord('0')
var minor = ord(version[2]) - ord('0')
glVersionMajor = major
glVersionMinor = minor
@ -17861,8 +17861,8 @@ proc findCoreGLES2(glVersion: string) =
version = version.replace(p)
break
var major = ord(glVersion[0]) - ord('0')
var minor = ord(glVersion[2]) - ord('0')
var major = ord(version[0]) - ord('0')
var minor = ord(version[2]) - ord('0')
glVersionMajor = major
glVersionMinor = minor

View file

@ -5705,8 +5705,8 @@ proc findCoreGLES2(glVersion: string) =
version = version.replace(p)
break
var major = ord(glVersion[0]) - ord('0')
var minor = ord(glVersion[2]) - ord('0')
var major = ord(version[0]) - ord('0')
var minor = ord(version[2]) - ord('0')
glVersionMajor = major
glVersionMinor = minor