This commit is contained in:
bkaradzic 2014-03-05 20:51:44 -08:00
parent 08ec0f3f96
commit ed4496282b

View file

@ -1287,9 +1287,6 @@ namespace bgfx
}
else
{
glVertexAttribDivisor = stubVertexAttribDivisor;
glDrawArraysInstanced = stubDrawArraysInstanced;
glDrawElementsInstanced = stubDrawElementsInstanced;
if (!BX_ENABLED(BX_PLATFORM_IOS) )
{
@ -1300,13 +1297,17 @@ namespace bgfx
&& NULL != glDrawArraysInstanced
&& NULL != glDrawElementsInstanced)
{
glVertexAttribDivisor = glVertexAttribDivisor;
glDrawArraysInstanced = glDrawArraysInstanced;
glDrawElementsInstanced = glDrawElementsInstanced;
g_caps.supported |= BGFX_CAPS_INSTANCING;
}
}
}
if (0 == (g_caps.supported & BGFX_CAPS_INSTANCING) )
{
glVertexAttribDivisor = stubVertexAttribDivisor;
glDrawArraysInstanced = stubDrawArraysInstanced;
glDrawElementsInstanced = stubDrawElementsInstanced;
}
}
#if BGFX_CONFIG_RENDERER_OPENGL