Henri Verbeet : wined3d: Take the location into account in context_apply_fbo_state_blit().
Alexandre Julliard
julliard at winehq.org
Thu Nov 11 12:05:50 CST 2010
Module: wine
Branch: master
Commit: 1fa19d8e4203f920eb29b8a4fb79d32917ce221a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1fa19d8e4203f920eb29b8a4fb79d32917ce221a
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Nov 11 12:39:17 2010 +0100
wined3d: Take the location into account in context_apply_fbo_state_blit().
---
dlls/wined3d/context.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index b615a76..32df69b 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -504,7 +504,7 @@ static void context_apply_fbo_state(struct wined3d_context *context, GLenum targ
void context_apply_fbo_state_blit(struct wined3d_context *context, GLenum target,
IWineD3DSurfaceImpl *render_target, IWineD3DSurfaceImpl *depth_stencil, DWORD location)
{
- if (surface_is_offscreen(render_target))
+ if (location != SFLAG_INDRAWABLE || surface_is_offscreen(render_target))
{
UINT clear_size = (context->gl_info->limits.buffers - 1) * sizeof(*context->blit_targets);
context->blit_targets[0] = render_target;
More information about the wine-cvs
mailing list