issue #3025: move deprecated texture cache implementation to cpp file