This commit is contained in:
Hugo Amnov 2018-09-24 06:00:54 +02:00 committed by Branimir Karadžić
parent 5d3c1325d5
commit c1f3271a37

View File

@ -4487,7 +4487,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)
{