Allow specifying version when creating OpenGL context
authorMika Isojärvi <misojarvi@google.com>
Thu, 9 Jun 2016 16:45:35 +0000 (09:45 -0700)
committerMika Isojärvi <misojarvi@google.com>
Thu, 9 Jun 2016 16:45:35 +0000 (09:45 -0700)
Allow specifying version number when creating OpenGL context using
EGL_KHR_create_context.

Bug: 29191048
Change-Id: Ia827f8b1ba69c0695943d34f43255d4153780bbf

modules/egl/teglNegativeApiTests.cpp

index 9a80ff9..8295f74 100644 (file)
@@ -410,7 +410,7 @@ void NegativeApiTests::init (void)
 
                        log << TestLog::Section("Test6", "EGL_BAD_ATTRIBUTE is generated if attrib_list contains an invalid context attribute");
 
-                       if (isAPISupported(EGL_OPENGL_API))
+                       if (isAPISupported(EGL_OPENGL_API) && !eglu::hasExtension(m_eglTestCtx.getLibrary(), display, "EGL_KHR_create_context"))
                        {
                                EGLConfig glConfig;
                                if (getConfig(&glConfig, FilterList() << renderable<EGL_OPENGL_BIT>))