Module: wine Branch: master Commit: c1eabc2ce7d365d4f9bf9ce0926853b0a0341d87 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c1eabc2ce7d365d4f9bf9ce092...
Author: Stefan Dösinger stefan@codeweavers.com Date: Wed Aug 27 13:20:50 2008 -0500
ddraw: Catch attempts to opengl-render to the desktop window.
---
dlls/ddraw/ddraw.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c index 1728c96..9fdbd27 100644 --- a/dlls/ddraw/ddraw.c +++ b/dlls/ddraw/ddraw.c @@ -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,