On 21 June 2011 23:49, Matteo Bruni matteo.mystral@gmail.com wrote:
Here I modified surface_get_gl_buffer() to fix backbuffer ORM, an alternative approach would be to modify context_apply_[blit|clear|draw]_state() in a similar fashion instead.
Yeah, I think I'd prefer the alternative. We handle onscreen and offscreen surfaces separately for the FBO cases as well, and conceptually I'd prefer ORM checks to be in the context code if anywhere.