wined3d: Validate the D3D context in FindContext().
commit43aaaa8a4b1b92976e466c63eab1cd1c6e9c0134
authorHenri Verbeet <hverbeet@codeweavers.com>
Tue, 20 Oct 2009 09:05:04 +0000 (20 11:05 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 20 Oct 2009 12:00:36 +0000 (20 14:00 +0200)
treef8e4d33696c2a38f3721e2a87c30d07b3cf0a3f8
parent0cb6f28751b106833ed8fa9ac50e21bc825f7289
wined3d: Validate the D3D context in FindContext().

Apparently it's valid to use a D3D device after its window is destroyed.
OpenGL isn't always so forgiving, so this patch is a first step to avoid
making GL calls on a context without window.
dlls/wined3d/context.c
dlls/wined3d/wined3d_private.h