{
MovePtr<ContextInfo> info (ContextInfo::create(getRenderContext()));
- if (!m_extension.empty() && !info->isExtensionSupported(m_extension.c_str()))
+ if (!m_extension.empty() && !info->isExtensionSupported(m_extension.c_str()) &&
+ !glu::contextSupports(getRenderContext().getType(), glu::ApiType::core(4, 5)))
throw NotSupportedError("Unsupported extension: " + m_extension);
runTest();
spec.drawMethod == DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_INSTANCED_BASEVERTEX ||
spec.drawMethod == DrawTestSpec::DRAWMETHOD_DRAWELEMENTS_RANGED_BASEVERTEX)
{
- const bool supportsES32 = contextSupports(m_renderCtx.getType(), glu::ApiType::es(3, 2));
- TCU_CHECK_AND_THROW(NotSupportedError, supportsES32 || m_contextInfo->isExtensionSupported("GL_EXT_draw_elements_base_vertex"), "GL_EXT_draw_elements_base_vertex is not supported.");
+ const bool supportsES32orGL45 = contextSupports(m_renderCtx.getType(), glu::ApiType::es(3, 2)) ||
+ contextSupports(m_renderCtx.getType(), glu::ApiType::core(4, 5));
+ TCU_CHECK_AND_THROW(NotSupportedError, supportsES32orGL45 || m_contextInfo->isExtensionSupported("GL_EXT_draw_elements_base_vertex"), "GL_EXT_draw_elements_base_vertex is not supported.");
}
const bool drawStep = (m_iteration % 2) == 0;