mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -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
|
||||
{
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue