From c1f3271a372e72e5c3fc101631b43a46eb7250e2 Mon Sep 17 00:00:00 2001 From: Hugo Amnov Date: Mon, 24 Sep 2018 06:00:54 +0200 Subject: [PATCH] Revert 42b1104 (#1499) --- src/renderer_gl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index c8164115a..d3c08348c 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -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) {