bge.texture materialId wasn't showing up bge.type was outdated (I removed the glew example, I hope no one mind)