Commit 5b6bf340 authored by Peter Hunnisett's avatar Peter Hunnisett Committed by Alexandre Julliard

Newbie friendly error message for 3D creation failure.

parent 8adbdd7c
......@@ -639,6 +639,14 @@ static HRESULT WINAPI Xlib_IDirectDraw2Impl_QueryInterface(
return create_direct3d2(obj,This);
if ( IsEqualGUID( &IID_IDirect3D3, refiid ) )
return create_direct3d3(obj,This);
#else
if ( IsEqualGUID( &IID_IDirect3D, refiid ) ||
IsEqualGUID( &IID_IDirect3D2, refiid ) ||
IsEqualGUID( &IID_IDirect3D3, refiid )
)
{
ERR( "Cannot provide 3D support without OpenGL/Mesa installed\n" );
}
#endif
FIXME("(%p):interface for IID %s _NOT_ found!\n",This,debugstr_guid(refiid));
return OLE_E_ENUM_NOMORE;
......
......@@ -82,6 +82,13 @@ HRESULT WINAPI Xlib_IDirectDrawSurface4Impl_QueryInterface(
TRACE(" Creating IDirect3DTexture interface (%p)\n", *obj);
return S_OK;
}
#else
if ( IsEqualGUID( &IID_IDirect3DTexture2, refiid ) ||
IsEqualGUID( &IID_IDirect3DTexture, refiid )
)
{
ERR( "Cannot provide 3D support without OpenGL/Mesa installed\n" );
}
#endif /* HAVE_OPENGL */
FIXME("(%p):interface for IID %s NOT found!\n",This,debugstr_guid(refiid));
return OLE_E_ENUM_NOMORE;
......
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