prevent texture creation each frame in gui