Add get_tex_id function to glitchtextureman.cpp