mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-19 13:32:59 +01:00
GL: Added clip control support.
This commit is contained in:
@@ -1818,6 +1818,17 @@ namespace bgfx { namespace gl
|
||||
);
|
||||
}
|
||||
|
||||
if (s_extension[Extension::ARB_clip_control].m_supported)
|
||||
{
|
||||
GL_CHECK(glClipControl(GL_LOWER_LEFT, GL_ZERO_TO_ONE) );
|
||||
g_caps.originBottomLeft = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
g_caps.homogeneousDepth = true;
|
||||
g_caps.originBottomLeft = true;
|
||||
}
|
||||
|
||||
m_vaoSupport = !!(BGFX_CONFIG_RENDERER_OPENGLES >= 30)
|
||||
|| s_extension[Extension::ARB_vertex_array_object].m_supported
|
||||
|| s_extension[Extension::OES_vertex_array_object].m_supported
|
||||
|
||||
Reference in New Issue
Block a user