mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
GL: Check if occlusion query functions are found.
This commit is contained in:
parent
aa9298b572
commit
9955508da1
1 changed files with 7 additions and 0 deletions
|
@ -1824,6 +1824,13 @@ namespace bgfx { namespace gl
|
|||
|| s_extension[Extension::NV_occlusion_query ].m_supported
|
||||
;
|
||||
|
||||
m_occlusionQuerySupport &= true
|
||||
&& NULL != glGenQueries
|
||||
&& NULL != glDeleteQueries
|
||||
&& NULL != glBeginQuery
|
||||
&& NULL != glEndQuery
|
||||
;
|
||||
|
||||
g_caps.supported |= m_occlusionQuerySupport
|
||||
? BGFX_CAPS_OCCLUSION_QUERY
|
||||
: 0
|
||||
|
|
Loading…
Reference in a new issue