GL: Fixed vertex layout binding.

This commit is contained in:
Бранимир Караџић
2022-02-25 17:21:55 -08:00
parent 0e032b586e
commit ae7aeba72c
3 changed files with 19 additions and 1 deletions

View File

@@ -5164,7 +5164,7 @@ namespace bgfx { namespace gl
uint32_t baseVertex = _baseVertex*_layout.m_stride + _layout.m_offset[attr];
if ( (BX_ENABLED(BGFX_CONFIG_RENDERER_OPENGL >= 30) || s_renderGL->m_gles3)
&& (AttribType::Uint8 == type || AttribType::Int16 == type)
&& !isFloat(type)
&& !normalized)
{
GL_CHECK(glVertexAttribIPointer(loc