From 90246d3ea54f54d60593dce1b89f0226058a3c56 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 11 Nov 2008 14:33:11 -0700 Subject: [PATCH] mesa: fix version check in dinoshade.c --- progs/tests/dinoshade.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/progs/tests/dinoshade.c b/progs/tests/dinoshade.c index 504b4af526a..44115b9209d 100644 --- a/progs/tests/dinoshade.c +++ b/progs/tests/dinoshade.c @@ -793,7 +793,7 @@ supportsOneDotOne(void) version = (char *) glGetString(GL_VERSION); if (sscanf(version, "%d.%d", &major, &minor) == 2) - return major >= 1 && minor >= 1; + return major * 10 + minor >= 11; return 0; /* OpenGL version string malformed! */ } -- 2.30.2