Lines Matching defs:egl
80 EGLContext createGLContext (const Library& egl,
87 const bool khrCreateContextSupported = hasExtension(egl, display, "EGL_KHR_create_context");
88 const bool khrCreateContextNoErrorSupported = hasExtension(egl, display, "EGL_KHR_create_context_no_error");
145 if (!hasExtension(egl, display, "EGL_EXT_create_context_robustness") && (getVersion(egl, display) < Version(1, 5)))
179 if (getVersion(egl, display) >= Version(1, 5) || glu::isContextTypeGLCore(contextType) || glu::isContextTypeGLCompatibility(contextType))
181 else if (hasExtension(egl, display, "EGL_EXT_create_context_robustness"))
197 EGLU_CHECK_CALL(egl, bindAPI(api));
198 context = egl.createContext(display, eglConfig, sharedContext, &(attribList[0]));
199 EGLU_CHECK_MSG(egl, "eglCreateContext()");
204 static bool configMatches (const eglw::Library& egl, eglw::EGLDisplay display, eglw::EGLConfig eglConfig, const glu::RenderConfig& renderConfig)
212 EGLU_CHECK_CALL(egl, getConfigAttrib(display, eglConfig, EGL_RENDERABLE_TYPE, &renderableType));
232 EGLU_CHECK_CALL(egl, getConfigAttrib(display, eglConfig, EGL_SURFACE_TYPE, &surfaceType));
260 EGLU_CHECK_CALL(egl, getConfigAttrib(display, eglConfig, s_attribs[attribNdx].attrib, &value));
270 EGLConfig chooseConfig (const Library& egl, EGLDisplay display, const glu::RenderConfig& config)
272 const std::vector<EGLConfig> configs = eglu::getConfigs(egl, display);
276 if (configMatches(egl, display, *iter, config))