Fix performance issues on certain legacy graphics hardware that isn't capable of copying an integer.

This reverts commit 52dacaa3e3.
This commit is contained in:
Jordan Woyak
2013-02-25 20:45:01 -06:00
parent c86b892f95
commit 380f22ca0e
2 changed files with 6 additions and 2 deletions

View File

@ -100,7 +100,7 @@ void GLVertexFormat::Initialize(const PortableVertexDeclaration &_vtx_decl)
if (vtx_decl.posmtx_offset != -1) {
glEnableVertexAttribArray(SHADER_POSMTX_ATTRIB);
glVertexAttribIPointer(SHADER_POSMTX_ATTRIB, 1, GL_UNSIGNED_BYTE, vtx_decl.stride, (u8*)NULL + vtx_decl.posmtx_offset);
glVertexAttribPointer(SHADER_POSMTX_ATTRIB, 4, GL_UNSIGNED_BYTE, GL_FALSE, vtx_decl.stride, (u8*)NULL + vtx_decl.posmtx_offset);
}
vm->m_last_vao = VAO;