fix byte mode textures support by the cache