partly fixed support for restoring cached filters on a context loss (refs #474)

Only works for textures that can be synchronously updated, though.