wined3d: Refuse 3D initialization without opengl.

This commit is contained in:
Stefan Dösinger 2008-03-28 23:04:52 +01:00 committed by Alexandre Julliard
parent 8673be0bd7
commit a29a229324
1 changed files with 1 additions and 0 deletions

View File

@ -2010,6 +2010,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, WINED3DPR
TRACE("(%p)->(%p,%p)\n", This, pPresentationParameters, D3DCB_CreateAdditionalSwapChain); TRACE("(%p)->(%p,%p)\n", This, pPresentationParameters, D3DCB_CreateAdditionalSwapChain);
if(This->d3d_initialized) return WINED3DERR_INVALIDCALL; if(This->d3d_initialized) return WINED3DERR_INVALIDCALL;
if(!This->adapter->opengl) return WINED3DERR_INVALIDCALL;
/* TODO: Test if OpenGL is compiled in and loaded */ /* TODO: Test if OpenGL is compiled in and loaded */