Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2017-10-23 22:22:22 +0300
committerAntony Riakiotakis <kalast@gmail.com>2017-10-23 22:22:22 +0300
commit4db67aab06dfe6a210ab20268ed898834371119b (patch)
treec9a591815c9a9f8931296a6fcdd0b0d748d24cf0 /release
parentc8edac617f91ef6e31e774d73a21b956b6d987a8 (diff)
Fix OpenGL extension report in system info operator.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/modules/sys_info.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/release/scripts/modules/sys_info.py b/release/scripts/modules/sys_info.py
index e447d8a4dc5..53b3197fca3 100644
--- a/release/scripts/modules/sys_info.py
+++ b/release/scripts/modules/sys_info.py
@@ -185,14 +185,19 @@ def write_sysinfo(filepath):
output.write("version:\t%r\n" % (bgl.glGetString(bgl.GL_VERSION)))
output.write("extensions:\n")
- glext = sorted(bgl.glGetString(bgl.GL_EXTENSIONS).split())
+ limit = bgl.Buffer(bgl.GL_INT, 1)
+ bgl.glGetIntegerv(bgl.GL_NUM_EXTENSIONS, limit)
+
+ glext = []
+ for i in range(limit[0]):
+ glext.append(bgl.glGetStringi(bgl.GL_EXTENSIONS, i))
+
+ glext = sorted(glext)
+
for l in glext:
output.write("\t%s\n" % l)
output.write(title("Implementation Dependent OpenGL Limits"))
- limit = bgl.Buffer(bgl.GL_INT, 1)
- bgl.glGetIntegerv(bgl.GL_MAX_TEXTURE_UNITS, limit)
- output.write("Maximum Fixed Function Texture Units:\t%d\n" % limit[0])
bgl.glGetIntegerv(bgl.GL_MAX_ELEMENTS_VERTICES, limit)
output.write("Maximum DrawElements Vertices:\t%d\n" % limit[0])
bgl.glGetIntegerv(bgl.GL_MAX_ELEMENTS_INDICES, limit)