Fix GLAD bug where it wasn't reading OpenGL ES version correctly.
This commit is contained in:
parent
878137db71
commit
d9778546b5
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue