Commit c1eabc2c authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

ddraw: Catch attempts to opengl-render to the desktop window.

parent d5f05c59
......@@ -3279,7 +3279,7 @@ IDirectDrawImpl_AttachD3DDevice(IDirectDrawImpl *This,
TRACE("(%p)->(%p)\n", This, primary);
/* If there's no window, create a hidden window. WineD3D needs it */
if(window == 0)
if(window == 0 || window == GetDesktopWindow())
{
window = CreateWindowExA(0, This->classname, "Hidden D3D Window",
WS_DISABLED, 0, 0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment