mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
GL: Check sampler object support.
This commit is contained in:
parent
c9d8b03fa6
commit
d65ce46ca0
1 changed files with 4 additions and 1 deletions
|
@ -2388,11 +2388,14 @@ namespace bgfx { namespace gl
|
|||
{
|
||||
if (BX_ENABLED(BGFX_CONFIG_RENDERER_OPENGL)
|
||||
|| BX_ENABLED(BGFX_CONFIG_RENDERER_OPENGLES >= 30) )
|
||||
{
|
||||
if (m_samplerObjectSupport)
|
||||
{
|
||||
GL_CHECK(glBindSampler(0, 0) );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void blitRender(TextVideoMemBlitter& _blitter, uint32_t _numIndices) BX_OVERRIDE
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue