#include "gluRenderContext.hpp"
#include "gluDefs.hpp"
#include "gluRenderConfig.hpp"
-#include "gluES3PlusWrapperContext.hpp"
#include "gluFboRenderContext.hpp"
#include "gluPlatform.hpp"
#include "gluStrUtil.hpp"
return flags;
}
-RenderContext* createRenderContext (tcu::Platform& platform, const tcu::CommandLine& cmdLine, const RenderConfig& config)
+RenderContext* createRenderContext (tcu::Platform& platform, const tcu::CommandLine& cmdLine, const RenderConfig& config, const RenderContext* sharedContext)
{
const ContextFactoryRegistry& registry = platform.getGLPlatform().getContextFactoryRegistry();
const char* factoryName = cmdLine.getGLContextType();
factory = registry.getDefaultFactory();
if (cmdLine.getSurfaceType() == tcu::SURFACETYPE_FBO)
+ {
+ if (sharedContext)
+ TCU_FAIL("Shared context not implemented for FBO surface type");
return new FboRenderContext(*factory, config, cmdLine);
+ }
else
- return factory->createContext(config, cmdLine);
+ return factory->createContext(config, cmdLine, sharedContext);
}
RenderContext* createDefaultRenderContext (tcu::Platform& platform, const tcu::CommandLine& cmdLine, ApiType apiType)
{ ApiType::core(4,3), glw::initGL43Core },
{ ApiType::core(4,4), glw::initGL44Core },
{ ApiType::core(4,5), glw::initGL45Core },
+ { ApiType::core(4,6), glw::initGL46Core },
};
for (int ndx = 0; ndx < DE_LENGTH_OF_ARRAY(s_initFuncs); ndx++)
else if (type == glu::ApiType::core(4, 3)) return "OpenGL 4.3 core";
else if (type == glu::ApiType::core(4, 4)) return "OpenGL 4.4 core";
else if (type == glu::ApiType::core(4, 5)) return "OpenGL 4.5 core";
+ else if (type == glu::ApiType::core(4, 6)) return "OpenGL 4.6 core";
else return DE_NULL;
}