forked from Mirrors/wine-wine
wined3d: Remove some redundant IWineD3DSurface_PreLoad calls from stretch_rect_fbo.
parent
112c3bf1c3
commit
f0fcf7e133
|
@ -5296,7 +5296,6 @@ void stretch_rect_fbo(IWineD3DDevice *iface, IWineD3DSurface *src_surface, const
|
||||||
flip = !flip;
|
flip = !flip;
|
||||||
} else {
|
} else {
|
||||||
TRACE("Source surface %p is offscreen\n", src_surface);
|
TRACE("Source surface %p is offscreen\n", src_surface);
|
||||||
IWineD3DSurface_PreLoad(src_surface);
|
|
||||||
bind_fbo(iface, GL_READ_FRAMEBUFFER_EXT, &This->src_fbo);
|
bind_fbo(iface, GL_READ_FRAMEBUFFER_EXT, &This->src_fbo);
|
||||||
attach_surface_fbo(This, GL_READ_FRAMEBUFFER_EXT, 0, src_surface);
|
attach_surface_fbo(This, GL_READ_FRAMEBUFFER_EXT, 0, src_surface);
|
||||||
}
|
}
|
||||||
|
@ -5308,7 +5307,6 @@ void stretch_rect_fbo(IWineD3DDevice *iface, IWineD3DSurface *src_surface, const
|
||||||
flip = !flip;
|
flip = !flip;
|
||||||
} else {
|
} else {
|
||||||
TRACE("Destination surface %p is offscreen\n", dst_surface);
|
TRACE("Destination surface %p is offscreen\n", dst_surface);
|
||||||
IWineD3DSurface_PreLoad(dst_surface);
|
|
||||||
bind_fbo(iface, GL_DRAW_FRAMEBUFFER_EXT, &This->dst_fbo);
|
bind_fbo(iface, GL_DRAW_FRAMEBUFFER_EXT, &This->dst_fbo);
|
||||||
attach_surface_fbo(This, GL_DRAW_FRAMEBUFFER_EXT, 0, dst_surface);
|
attach_surface_fbo(This, GL_DRAW_FRAMEBUFFER_EXT, 0, dst_surface);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue