On 22 October 2015 at 23:38, Stefan Dösinger stefan@codeweavers.com wrote:
It is a bit unfortunate that we have to do this every draw now...
You may not have to, as such. You could just make doing a prepare_location()/load_location() a requirement before calling context_apply_fbo_state(). For things like draws you currently already need to call load_location(), but e.g. full clears depend on context_apply_fbo_state() to call prepare_location(). I think it would make sense to move those to the caller as well.