From 57ccdb7e368329cf7e64b4619802becb95115939 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 23 Jul 2009 10:54:32 +0200 Subject: [PATCH] wined3d: Don't reuse contexts marked for destruction. --- dlls/wined3d/context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index d82d2dc159c..02159fb867d 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -1609,6 +1609,8 @@ static inline WineD3DContext *FindContext(IWineD3DDeviceImpl *This, IWineD3DSurf const struct GlPixelFormatDesc *old, *new; struct WineD3DContext *context; + if (current_context && current_context->destroyed) current_context = NULL; + if (!target) { if (current_context