http://bugs.winehq.org/show_bug.cgi?id=20448
--- Comment #8 from Chow Loong Jin hyperair@gmail.com 2009-10-24 01:21:49 --- Sorry, please ignore my previous comment. It was submitted prematurely.
Actually digging around context.c has led me to see one case where context->current_fbo can remain NULL.
From context_apply_fbo_state(), if !context->render_offscreen,
context->current_fbo = NULL; context_bind_fbo (context, GL_FRAMEBUFFER, NULL);
In context_bind_fbo(), f = 0; if (context->fbo_read_binding == f && context->fbo_draw_binding == f) return; context->fbo_read_binding = f; context->fbo_draw_binding = f; gl_info->fbo_ops.glBindFramebuffer(target, f);
The above code doesn't touch context->current_fbo, does it? Unless I'm mistaken and somewhere in gl_info->fbo_ops.glBindFramebuffer(target, f) sets it somehow?