GL: Check if occlusion query functions are found.

This commit is contained in:
Branimir Karadžić 2015-11-16 21:31:27 -08:00
parent aa9298b572
commit 9955508da1

View file

@ -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