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

This reverts commit 8b7141d3de.

GLSL120 can't handle integer attributes :-(
This commit is contained in:
degasus
2013-04-24 03:03:52 +02:00
parent 1b76655312
commit 4a48485482
2 changed files with 6 additions and 2 deletions

View File

@ -87,7 +87,7 @@ void GLVertexFormat::Initialize(const PortableVertexDeclaration &_vtx_decl)
if (vtx_decl.posmtx_offset != -1) {
glEnableVertexAttribArray(SHADER_POSMTX_ATTRIB);
glVertexAttribIPointer(SHADER_POSMTX_ATTRIB, 4, 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;