mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-02-26 16:44:00 -05:00
Cleanup.
This commit is contained in:
parent
08ec0f3f96
commit
ed4496282b
1 changed files with 7 additions and 6 deletions
|
@ -1287,9 +1287,6 @@ namespace bgfx
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
glVertexAttribDivisor = stubVertexAttribDivisor;
|
|
||||||
glDrawArraysInstanced = stubDrawArraysInstanced;
|
|
||||||
glDrawElementsInstanced = stubDrawElementsInstanced;
|
|
||||||
|
|
||||||
if (!BX_ENABLED(BX_PLATFORM_IOS) )
|
if (!BX_ENABLED(BX_PLATFORM_IOS) )
|
||||||
{
|
{
|
||||||
|
@ -1300,13 +1297,17 @@ namespace bgfx
|
||||||
&& NULL != glDrawArraysInstanced
|
&& NULL != glDrawArraysInstanced
|
||||||
&& NULL != glDrawElementsInstanced)
|
&& NULL != glDrawElementsInstanced)
|
||||||
{
|
{
|
||||||
glVertexAttribDivisor = glVertexAttribDivisor;
|
|
||||||
glDrawArraysInstanced = glDrawArraysInstanced;
|
|
||||||
glDrawElementsInstanced = glDrawElementsInstanced;
|
|
||||||
g_caps.supported |= BGFX_CAPS_INSTANCING;
|
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
|
#if BGFX_CONFIG_RENDERER_OPENGL
|
||||||
|
|
Loading…
Reference in a new issue