|
|
@@ -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
|