mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Cleanup.
This commit is contained in:
parent
b94c328604
commit
aa814e9994
1 changed files with 5 additions and 7 deletions
|
@ -1763,7 +1763,7 @@ namespace bgfx
|
||||||
, GL_RENDERBUFFER
|
, GL_RENDERBUFFER
|
||||||
, m_colorRbo
|
, m_colorRbo
|
||||||
) );
|
) );
|
||||||
|
|
||||||
GL_CHECK(glBindFramebuffer(GL_FRAMEBUFFER, m_fbo[1]) );
|
GL_CHECK(glBindFramebuffer(GL_FRAMEBUFFER, m_fbo[1]) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -2337,6 +2337,10 @@ namespace bgfx
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !BGFX_CONFIG_RENDERER_OPENGLES3
|
#if !BGFX_CONFIG_RENDERER_OPENGLES3
|
||||||
|
s_vertexAttribDivisor = stubVertexAttribDivisor;
|
||||||
|
s_drawArraysInstanced = stubDrawArraysInstanced;
|
||||||
|
s_drawElementsInstanced = stubDrawElementsInstanced;
|
||||||
|
|
||||||
if (s_extension[Extension::ARB_instanced_arrays].m_supported
|
if (s_extension[Extension::ARB_instanced_arrays].m_supported
|
||||||
|| s_extension[Extension::ANGLE_instanced_arrays].m_supported)
|
|| s_extension[Extension::ANGLE_instanced_arrays].m_supported)
|
||||||
{
|
{
|
||||||
|
@ -2348,12 +2352,6 @@ namespace bgfx
|
||||||
s_drawArraysInstanced = glDrawArraysInstanced;
|
s_drawArraysInstanced = glDrawArraysInstanced;
|
||||||
s_drawElementsInstanced = glDrawElementsInstanced;
|
s_drawElementsInstanced = glDrawElementsInstanced;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
s_vertexAttribDivisor = stubVertexAttribDivisor;
|
|
||||||
s_drawArraysInstanced = stubDrawArraysInstanced;
|
|
||||||
s_drawElementsInstanced = stubDrawElementsInstanced;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif // !BGFX_CONFIG_RENDERER_OPENGLES3
|
#endif // !BGFX_CONFIG_RENDERER_OPENGLES3
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue