Reset the dirty flag when calling the update. Not doing so prevented textures from being updated when modified.