Henri Verbeet : wined3d: The drawable is a valid location for offscreen textures when " AlwaysOffscreen" is disabled.
Alexandre Julliard
julliard at winehq.org
Wed Nov 23 16:08:38 CST 2016
Module: wine
Branch: master
Commit: 1a02c676fbe7468bf9edca637a2415d5739f376b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1a02c676fbe7468bf9edca637a2415d5739f376b
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Wed Nov 23 14:30:28 2016 +0100
wined3d: The drawable is a valid location for offscreen textures when "AlwaysOffscreen" is disabled.
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/texture.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/texture.c b/dlls/wined3d/texture.c
index 4a572ab..b1dca69 100644
--- a/dlls/wined3d/texture.c
+++ b/dlls/wined3d/texture.c
@@ -1364,7 +1364,7 @@ BOOL wined3d_texture_prepare_location(struct wined3d_texture *texture, unsigned
return TRUE;
case WINED3D_LOCATION_DRAWABLE:
- if (!texture->swapchain)
+ if (!texture->swapchain && wined3d_settings.always_offscreen)
ERR("Texture %p does not have a drawable.\n", texture);
return TRUE;
More information about the wine-cvs
mailing list