fix updateCache not clearing the cached texture

this will clear the cached texture before render