fixed recent bug with CUDA texture objects