Newbie friendly error message for 3D creation failure.
This commit is contained in:
parent
8adbdd7c7b
commit
5b6bf34067
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue