Fixed issue when running on cpu when compile with CUDA. Texture arrays were being allocated regardless of what the execution mode was set to.