Move grTexDetailControl to textures_common.cpp