mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-02 09:03:37 +00:00
Added check for GL_EXT_draw_elements_base_vertex
This commit is contained in:
parent
0e228e9109
commit
cb76d2f39d
|
@ -67,7 +67,7 @@ void ContextImpl::init()
|
|||
}
|
||||
|
||||
{
|
||||
if ((m_glInfo.isGLESX && m_glInfo.bufferStorage) || !m_glInfo.isGLESX)
|
||||
if (!m_glInfo.isGLESX || (m_glInfo.bufferStorage && m_glInfo.drawElementsBaseVertex))
|
||||
m_graphicsDrawer.reset(new BufferedDrawer(m_glInfo, m_cachedFunctions->getCachedVertexAttribArray(), m_cachedFunctions->getCachedBindBuffer()));
|
||||
else
|
||||
m_graphicsDrawer.reset(new UnbufferedDrawer(m_glInfo, m_cachedFunctions->getCachedVertexAttribArray()));
|
||||
|
|
|
@ -104,6 +104,8 @@ void GLInfo::init() {
|
|||
config.generalEmulation.enableHybridFilter = 0;
|
||||
}
|
||||
|
||||
drawElementsBaseVertex = !isGLESX || Utils::isExtensionSupported(*this, "GL_EXT_draw_elements_base_vertex");
|
||||
|
||||
bufferStorage = (!isGLESX && (numericVersion >= 44)) || Utils::isExtensionSupported(*this, "GL_ARB_buffer_storage") ||
|
||||
Utils::isExtensionSupported(*this, "GL_EXT_buffer_storage");
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ struct GLInfo {
|
|||
bool isGLESX = false;
|
||||
bool imageTextures = false;
|
||||
bool bufferStorage = false;
|
||||
bool drawElementsBaseVertex = false;
|
||||
bool texStorage = false;
|
||||
bool shaderStorage = false;
|
||||
bool msaa = false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user