wined3d, d3d9: Caps correction.
This commit is contained in:
parent
8c8d1e4f89
commit
8658d20b3e
|
@ -172,7 +172,7 @@ static HRESULT WINAPI IDirect3D9Impl_GetDeviceCaps(LPDIRECT3D9 iface, UINT Adapt
|
||||||
HeapFree(GetProcessHeap(), 0, pWineCaps);
|
HeapFree(GetProcessHeap(), 0, pWineCaps);
|
||||||
|
|
||||||
/* Some functionality is implemented in d3d9.dll, not wined3d.dll. Add the needed caps */
|
/* Some functionality is implemented in d3d9.dll, not wined3d.dll. Add the needed caps */
|
||||||
pCaps->Caps2 |= D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES;
|
pCaps->DevCaps2 |= D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES;
|
||||||
TRACE("(%p) returning %p\n", This, pCaps);
|
TRACE("(%p) returning %p\n", This, pCaps);
|
||||||
return hrc;
|
return hrc;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2243,9 +2243,9 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter,
|
||||||
The following fields apply to d3d9 only
|
The following fields apply to d3d9 only
|
||||||
------------------------------------------------ */
|
------------------------------------------------ */
|
||||||
if (This->dxVersion > 8) {
|
if (This->dxVersion > 8) {
|
||||||
FIXME("Caps support for directx9 is nonexistent at the moment!\n");
|
/* d3d9.dll sets D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES here because StretchRects is implemented in d3d9 */
|
||||||
*pCaps->DevCaps2 = 0;
|
*pCaps->DevCaps2 = 0;
|
||||||
/* TODO: D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES and VS3.0 needs at least D3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET */
|
/* TODO: VS3.0 needs at least D3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET */
|
||||||
*pCaps->MaxNpatchTessellationLevel = 0;
|
*pCaps->MaxNpatchTessellationLevel = 0;
|
||||||
*pCaps->MasterAdapterOrdinal = 0;
|
*pCaps->MasterAdapterOrdinal = 0;
|
||||||
*pCaps->AdapterOrdinalInGroup = 0;
|
*pCaps->AdapterOrdinalInGroup = 0;
|
||||||
|
|
Loading…
Reference in New Issue