http://bugs.winehq.org/show_bug.cgi?id=13313
--- Comment #19 from Henri Verbeet hverbeet@gmail.com 2011-03-03 02:08:56 CST --- (In reply to comment #18)
Not being at all familiar with this code, I'm not sure where to get the framebuffer size. The function sets:
"src_surface->get_drawable_size(context, &fbwidth, &fbheight);" should do. I'm not sure the current code (before your patch) would handle this correctly though. I think fb_copy_to_texture_hwstretch() was written with the idea that it would always be used for copying the backbuffer to some other texture, but it may also be used for copying from some offscreen render target. The difference would mostly be significant when doing something like stretching from a small offscreen surface to the backbuffer to create a blur effect.