Module: wine Branch: master Commit: 6f7e0d3dba6e8be7973a955c27349c49c64e1434 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6f7e0d3dba6e8be7973a955c27...
Author: Józef Kucia jkucia@codeweavers.com Date: Wed Oct 5 11:17:05 2016 +0200
wined3d: Avoid trying to get backup DC when context is no longer associated with swapchain.
Signed-off-by: Józef Kucia jkucia@codeweavers.com Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/wined3d/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index f249587..89cc9ce 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -1069,7 +1069,7 @@ static BOOL context_set_gl_context(struct wined3d_context *ctx) * a swapchain, so we can't use the swapchain to get a backup dc. To * make this work windowless contexts would need to be handled by the * device. */ - if (ctx->destroyed) + if (ctx->destroyed || !swapchain) { FIXME("Unable to get backup dc for destroyed context %p.\n", ctx); context_set_current(NULL);