mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
GL: Unbind VAO before using clear quad.
This commit is contained in:
parent
1c150f2e9a
commit
7c81905ed2
1 changed files with 6 additions and 0 deletions
|
@ -2110,6 +2110,12 @@ namespace bgfx
|
|||
#if BGFX_CONFIG_CLEAR_QUAD
|
||||
if (s_renderCtx->m_useClearQuad)
|
||||
{
|
||||
const GLuint defaultVao = s_renderCtx->m_vao;
|
||||
if (0 != defaultVao)
|
||||
{
|
||||
GL_CHECK(glBindVertexArray(defaultVao) );
|
||||
}
|
||||
|
||||
GL_CHECK(glDisable(GL_SCISSOR_TEST) );
|
||||
GL_CHECK(glDisable(GL_CULL_FACE) );
|
||||
GL_CHECK(glDisable(GL_BLEND) );
|
||||
|
|
Loading…
Reference in a new issue