Minor cleanup tweaks to textures_common.cpp