mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
GL: Unbind VAO before using clear quad.
This commit is contained in:
@@ -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) );
|
||||
|
||||
Reference in New Issue
Block a user