This commit is contained in:
Branimir Karadžić 2018-05-05 19:28:09 -07:00
parent 17b5fd973f
commit 97fe8e48a1
2 changed files with 1 additions and 5 deletions

View File

@ -152,7 +152,6 @@ namespace bgfx { namespace gl
m_context = glXCreateContext( (::Display*)g_platformData.ndt, m_visualInfo, 0, GL_TRUE);
BGFX_FATAL(NULL != m_context, Fatal::UnableToInitialize, "Failed to create GL 2.1 context.");
#if BGFX_CONFIG_RENDERER_OPENGL >= 31
glXCreateContextAttribsARB = (PFNGLXCREATECONTEXTATTRIBSARBPROC)glXGetProcAddress( (const GLubyte*)"glXCreateContextAttribsARB");
if (NULL != glXCreateContextAttribsARB)
@ -176,9 +175,6 @@ namespace bgfx { namespace gl
m_context = context;
}
}
#else
BX_UNUSED(bestConfig);
#endif // BGFX_CONFIG_RENDERER_OPENGL >= 31
XUnlockDisplay( (::Display*)g_platformData.ndt);
}

View File

@ -4800,7 +4800,7 @@ BX_TRACE("%d, %d, %d, %s", _array, _srgb, _mipAutogen, getName(_format) );
GL_CHECK(glVertexAttribDivisor(loc, 0) );
uint32_t baseVertex = _baseVertex*_vertexDecl.m_stride + _vertexDecl.m_offset[attr];
if ( (BX_ENABLED(BGFX_CONFIG_RENDERER_OPENGL >= 30) || BX_ENABLED(BGFX_CONFIG_RENDERER_OPENGLES >= 31) )
if (NULL != glVertexAttribIPointer
&& (AttribType::Uint8 == type || AttribType::Int16 == type)
&& !normalized)
{