summaryrefslogtreecommitdiffstats
path: root/src/wgl
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2014-10-03 15:52:25 -0600
committerBrian Paul <brianp@vmware.com>2014-11-01 08:59:27 -0600
commit88aa72ef863e9c757af11c788d38e8500e4e873f (patch)
treeedb0414fc4c440e6dd150783d6d176dca0dec78d /src/wgl
parentd014902154033339f0bea1a159cb1375ba6bd04d (diff)
downloadmesa-demos-88aa72ef863e9c757af11c788d38e8500e4e873f.zip
mesa-demos-88aa72ef863e9c757af11c788d38e8500e4e873f.tar.xz
glxinfo/wglinfo: reverse order of the gl_versions[] array
By going from newest to oldest we can simplify the glxinfo/wglinfo loops over the possible GL versions. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/wgl')
-rw-r--r--src/wgl/wglinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wgl/wglinfo.c b/src/wgl/wglinfo.c
index f628768..30b1307 100644
--- a/src/wgl/wglinfo.c
+++ b/src/wgl/wglinfo.c
@@ -189,7 +189,7 @@ print_screen_info(HDC _hdc, GLboolean limits, GLboolean singleLine,
return;
}
- for (i = NUM_GL_VERSIONS - 2; i > 0 ; i--) {
+ for (i = 0; gl_versions[i].major > 0; i++) {
int attribs[10], n;
/* don't bother below GL 3.1 */