[cyril] moved texture creating into texture pool.