summaryrefslogtreecommitdiffstats
path: root/progs/tests
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-07-10 14:39:57 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-07-10 14:39:57 +0000
commit356959952c93b64b5b6227c4fc2b3c4e9e08d6a1 (patch)
treef5b19bc52719a95f62deeb1af6fcb733cfccd43c /progs/tests
parentf6e76fe9b5c4c57ac6dc81143b4474ebfee879d2 (diff)
added GL_VERSION check
Diffstat (limited to 'progs/tests')
-rw-r--r--progs/tests/getprocaddress.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/progs/tests/getprocaddress.c b/progs/tests/getprocaddress.c
index 02e507fb527..057d9618ea1 100644
--- a/progs/tests/getprocaddress.c
+++ b/progs/tests/getprocaddress.c
@@ -287,7 +287,14 @@ check_functions( const char *extensions )
for (entry = functions; entry->name; entry++) {
if (entry->name[0] == '-') {
if (entry->name[1] == '1') {
- doTests = 1;
+ /* check GL version X.Y */
+ const char *version = (const char *) glGetString(GL_VERSION);
+ if (version[0] == entry->name[1] &&
+ version[1] == entry->name[2] &&
+ version[2] >= entry->name[3])
+ doTests = 1;
+ else
+ doTests = 0;
}
else {
/* check if the named extension is available */