mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +00:00
wined3d: Bind GL_FRAMEBUFFER_EXT rather than GL_DRAW_FRAMEBUFFER_EXT in color_fill_fbo.
This commit is contained in:
parent
b66791118e
commit
81edcea020
@ -5160,14 +5160,14 @@ static void color_fill_fbo(IWineD3DDevice *iface, IWineD3DSurface *surface, CONS
|
||||
|
||||
TRACE("Surface %p is onscreen\n", surface);
|
||||
|
||||
GL_EXTCALL(glBindFramebufferEXT(GL_DRAW_FRAMEBUFFER_EXT, 0));
|
||||
GL_EXTCALL(glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0));
|
||||
buffer = surface_get_gl_buffer(surface, swapchain);
|
||||
glDrawBuffer(buffer);
|
||||
checkGLcall("glDrawBuffer()");
|
||||
} else {
|
||||
TRACE("Surface %p is offscreen\n", surface);
|
||||
bind_fbo(iface, GL_DRAW_FRAMEBUFFER_EXT, &This->dst_fbo);
|
||||
attach_surface_fbo(This, GL_DRAW_FRAMEBUFFER_EXT, 0, surface);
|
||||
bind_fbo(iface, GL_FRAMEBUFFER_EXT, &This->dst_fbo);
|
||||
attach_surface_fbo(This, GL_FRAMEBUFFER_EXT, 0, surface);
|
||||
}
|
||||
|
||||
if (rect) {
|
||||
|
Loading…
Reference in New Issue
Block a user