wined3d: Don't reuse contexts marked for destruction.

This commit is contained in:
Henri Verbeet 2009-07-23 10:54:32 +02:00 committed by Alexandre Julliard
parent 40af06a576
commit 57ccdb7e36
1 changed files with 2 additions and 0 deletions

View File

@ -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