http://bugs.winehq.org/show_bug.cgi?id=14038
--- Comment #40 from Tobias Jakobi liquid.acid@gmx.net 2008-07-22 16:36:41 --- Created an attachment (id=14990) --> (http://bugs.winehq.org/attachment.cgi?id=14990) WINEDEBUG=+d3d_surface trace
I made a trace with ORM=fbo and PPE=medium. Since the gl error appears in surface.c I enabled the d3d_surface channel.
trace:d3d_surface:surface_get_gl_buffer (0x146768) : swapchain 0x15a1b0 trace:d3d_surface:surface_get_gl_buffer Returning GL_BACK trace:d3d_surface:read_from_framebuffer_texture Locking 0x405 buffer fixme:d3d_surface:read_from_framebuffer_texture >>>>>>>>>>>>>>>>> GL_INVALID_ENUM (0x500) from glReadBuffer @ surface.c / 917 trace:d3d_surface:surface_allocate_surface (0x146768) : Creating surface (target 0xde1) level 0, d3d format WINED3DFMT_X8R8G8B8, internal format 0x8051, width 800, height 600, gl format 0x80e1, gl type=0x8367
Seems like glReadBuffer doesn't like GL_BACK here.