mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-02-26 16:44:00 -05:00
GL: Fixed text rendering.
This commit is contained in:
parent
539353b7cb
commit
d46b05500b
1 changed files with 6 additions and 0 deletions
|
@ -2333,6 +2333,12 @@ namespace bgfx { namespace gl
|
||||||
|
|
||||||
GL_CHECK(glActiveTexture(GL_TEXTURE0) );
|
GL_CHECK(glActiveTexture(GL_TEXTURE0) );
|
||||||
GL_CHECK(glBindTexture(GL_TEXTURE_2D, m_textures[_blitter.m_texture.idx].m_id) );
|
GL_CHECK(glBindTexture(GL_TEXTURE_2D, m_textures[_blitter.m_texture.idx].m_id) );
|
||||||
|
|
||||||
|
if (BX_ENABLED(BGFX_CONFIG_RENDERER_OPENGL)
|
||||||
|
|| BX_ENABLED(BGFX_CONFIG_RENDERER_OPENGLES >= 30) )
|
||||||
|
{
|
||||||
|
GL_CHECK(glBindSampler(0, 0) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void blitRender(TextVideoMemBlitter& _blitter, uint32_t _numIndices) BX_OVERRIDE
|
void blitRender(TextVideoMemBlitter& _blitter, uint32_t _numIndices) BX_OVERRIDE
|
||||||
|
|
Loading…
Reference in a new issue