From a29a22932434c0c3768a5eb595ef50cd0f59b110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Fri, 28 Mar 2008 23:04:52 +0100 Subject: [PATCH] wined3d: Refuse 3D initialization without opengl. --- dlls/wined3d/device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index ee27abf337f..57b60457fe6 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -2010,6 +2010,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, WINED3DPR TRACE("(%p)->(%p,%p)\n", This, pPresentationParameters, D3DCB_CreateAdditionalSwapChain); if(This->d3d_initialized) return WINED3DERR_INVALIDCALL; + if(!This->adapter->opengl) return WINED3DERR_INVALIDCALL; /* TODO: Test if OpenGL is compiled in and loaded */