mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
GL: Fixed crash when extension reports functionality but function doesn't exist.
This commit is contained in:
parent
9fc5badf69
commit
1dc10fa48f
1 changed files with 4 additions and 1 deletions
|
@ -1352,7 +1352,8 @@ namespace bgfx { namespace gl
|
|||
|
||||
if (BX_ENABLED(BX_PLATFORM_NACL) )
|
||||
{
|
||||
m_vaoSupport &= NULL != glGenVertexArrays
|
||||
m_vaoSupport &= true
|
||||
&& NULL != glGenVertexArrays
|
||||
&& NULL != glDeleteVertexArrays
|
||||
&& NULL != glBindVertexArray
|
||||
;
|
||||
|
@ -1399,6 +1400,8 @@ namespace bgfx { namespace gl
|
|||
|| s_extension[Extension::EXT_timer_query ].m_supported
|
||||
;
|
||||
|
||||
m_timerQuerySupport &= NULL != glGetQueryObjectui64v;
|
||||
|
||||
g_caps.supported |= m_depthTextureSupport
|
||||
? BGFX_CAPS_TEXTURE_COMPARE_LEQUAL
|
||||
: 0
|
||||
|
|
Loading…
Reference in a new issue