bool isEGLExtensionSupported(
const eglw::Library& egl,
- eglw::EGLDisplay display,
+ eglw::EGLDisplay,
const std::string& extName)
{
const vector<string> exts = eglu::getClientExtensions(egl);
{
public:
ContextFactory (void);
- glu::RenderContext* createContext (const glu::RenderConfig& config, const tcu::CommandLine& cmdLine) const;
+ glu::RenderContext* createContext (const glu::RenderConfig& config, const tcu::CommandLine&, const glu::RenderContext*) const;
};
class EglRenderContext : public glu::RenderContext
: glu::ContextFactory("default", "EGL surfaceless context")
{}
-glu::RenderContext* ContextFactory::createContext(const glu::RenderConfig& config, const tcu::CommandLine& cmdLine) const
+glu::RenderContext* ContextFactory::createContext(const glu::RenderConfig& config, const tcu::CommandLine& cmdLine, const glu::RenderContext*) const
{
return new EglRenderContext(config, cmdLine);
}
frame_buffer_attribs.push_back(EGL_DONT_CARE);
break;
case glu::RenderConfig::SURFACETYPE_OFFSCREEN_NATIVE:
- break;
case glu::RenderConfig::SURFACETYPE_OFFSCREEN_GENERIC:
frame_buffer_attribs.push_back(EGL_PBUFFER_BIT);
surface_attribs.push_back(EGL_WIDTH);
case glu::RenderConfig::SURFACETYPE_DONT_CARE:
egl_surface = EGL_NO_SURFACE;
break;
+ case glu::RenderConfig::SURFACETYPE_OFFSCREEN_NATIVE:
case glu::RenderConfig::SURFACETYPE_OFFSCREEN_GENERIC:
egl_surface = eglCreatePbufferSurface(m_eglDisplay, egl_config, &surface_attribs[0]);
break;
+ case glu::RenderConfig::SURFACETYPE_WINDOW:
+ case glu::RenderConfig::SURFACETYPE_LAST:
+ TCU_CHECK_INTERNAL(false);
}
context_attribs.push_back(EGL_CONTEXT_MAJOR_VERSION_KHR);