[Piglit] [PATCH v2] gl30basic: add some extra suspected extension

Sandra Koroniewska sandra.koroniewska at gmail.com
Thu Apr 27 11:04:21 UTC 2017


This fixes
spec/gl30basic test on Windows Intel or Nvidia driver according to page 693 of openGL 4.4 spec ("In additional to OpenGL extensions, there are also ARB extensions to the related GLX and WGL APIs.").
---
 tests/general/gl30basic.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tests/general/gl30basic.c b/tests/general/gl30basic.c
index 2207787bb..08305a6f8 100644
--- a/tests/general/gl30basic.c
+++ b/tests/general/gl30basic.c
@@ -99,8 +99,12 @@ test_extension_list(void)
           ext[0] != 'G' ||
           ext[1] != 'L' ||
           ext[2] != '_') {
-         printf("%s: bad extension string [%d]: %s\n", Prog, k, ext);
-         return PIGLIT_FAIL;
+          if (ext[0] != 'W' ||
+              ext[1] != 'G' ||
+              ext[2] != 'L') {
+              printf("%s: bad extension string [%d]: %s\n", Prog, k, ext);
+              return PIGLIT_FAIL;
+          }
       }
       if (strchr((char *) ext, ' ')) {
          printf("%s: extension string [%d] contains a space: %s\n", Prog, k, ext);
-- 
2.11.0.windows.1



More information about the Piglit mailing list