This commit is contained in:
bkaradzic 2013-04-21 11:50:45 -07:00
parent b94c328604
commit aa814e9994

View file

@ -2337,6 +2337,10 @@ namespace bgfx
}
#if !BGFX_CONFIG_RENDERER_OPENGLES3
s_vertexAttribDivisor = stubVertexAttribDivisor;
s_drawArraysInstanced = stubDrawArraysInstanced;
s_drawElementsInstanced = stubDrawElementsInstanced;
if (s_extension[Extension::ARB_instanced_arrays].m_supported
|| s_extension[Extension::ANGLE_instanced_arrays].m_supported)
{
@ -2348,12 +2352,6 @@ namespace bgfx
s_drawArraysInstanced = glDrawArraysInstanced;
s_drawElementsInstanced = glDrawElementsInstanced;
}
else
{
s_vertexAttribDivisor = stubVertexAttribDivisor;
s_drawArraysInstanced = stubDrawArraysInstanced;
s_drawElementsInstanced = stubDrawElementsInstanced;
}
}
#endif // !BGFX_CONFIG_RENDERER_OPENGLES3