mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
d3d8: Don't expose wined3d internal flags to the application.
This commit is contained in:
parent
b55e3d82cf
commit
ef9be113e2
6 changed files with 7 additions and 7 deletions
|
@ -243,7 +243,7 @@ static HRESULT WINAPI d3d8_vertexbuffer_GetDesc(IDirect3DVertexBuffer8 *iface,
|
|||
wined3d_mutex_unlock();
|
||||
|
||||
desc->Type = D3DRTYPE_VERTEXBUFFER;
|
||||
desc->Usage = wined3d_desc.usage;
|
||||
desc->Usage = wined3d_desc.usage & WINED3DUSAGE_MASK;
|
||||
desc->Pool = wined3d_desc.pool;
|
||||
desc->Size = wined3d_desc.size;
|
||||
desc->FVF = buffer->fvf;
|
||||
|
@ -539,7 +539,7 @@ static HRESULT WINAPI d3d8_indexbuffer_GetDesc(IDirect3DIndexBuffer8 *iface,
|
|||
|
||||
desc->Format = d3dformat_from_wined3dformat(buffer->format);
|
||||
desc->Type = D3DRTYPE_INDEXBUFFER;
|
||||
desc->Usage = wined3d_desc.usage;
|
||||
desc->Usage = wined3d_desc.usage & WINED3DUSAGE_MASK;
|
||||
desc->Pool = wined3d_desc.pool;
|
||||
desc->Size = wined3d_desc.size;
|
||||
|
||||
|
|
|
@ -268,7 +268,7 @@ static HRESULT WINAPI IDirect3DCubeTexture8Impl_GetLevelDesc(IDirect3DCubeTextur
|
|||
wined3d_resource_get_desc(sub_resource, &wined3d_desc);
|
||||
desc->Format = d3dformat_from_wined3dformat(wined3d_desc.format);
|
||||
desc->Type = wined3d_desc.resource_type;
|
||||
desc->Usage = wined3d_desc.usage;
|
||||
desc->Usage = wined3d_desc.usage & WINED3DUSAGE_MASK;
|
||||
desc->Pool = wined3d_desc.pool;
|
||||
desc->Size = wined3d_desc.size;
|
||||
desc->MultiSampleType = wined3d_desc.multisample_type;
|
||||
|
|
|
@ -226,7 +226,7 @@ static HRESULT WINAPI IDirect3DSurface8Impl_GetDesc(IDirect3DSurface8 *iface, D3
|
|||
|
||||
desc->Format = d3dformat_from_wined3dformat(wined3d_desc.format);
|
||||
desc->Type = wined3d_desc.resource_type;
|
||||
desc->Usage = wined3d_desc.usage;
|
||||
desc->Usage = wined3d_desc.usage & WINED3DUSAGE_MASK;
|
||||
desc->Pool = wined3d_desc.pool;
|
||||
desc->Size = wined3d_desc.size;
|
||||
desc->MultiSampleType = wined3d_desc.multisample_type;
|
||||
|
|
|
@ -265,7 +265,7 @@ static HRESULT WINAPI IDirect3DTexture8Impl_GetLevelDesc(IDirect3DTexture8 *ifac
|
|||
wined3d_resource_get_desc(sub_resource, &wined3d_desc);
|
||||
desc->Format = d3dformat_from_wined3dformat(wined3d_desc.format);
|
||||
desc->Type = wined3d_desc.resource_type;
|
||||
desc->Usage = wined3d_desc.usage;
|
||||
desc->Usage = wined3d_desc.usage & WINED3DUSAGE_MASK;
|
||||
desc->Pool = wined3d_desc.pool;
|
||||
desc->Size = wined3d_desc.size;
|
||||
desc->MultiSampleType = wined3d_desc.multisample_type;
|
||||
|
|
|
@ -207,7 +207,7 @@ static HRESULT WINAPI IDirect3DVolume8Impl_GetDesc(IDirect3DVolume8 *iface, D3DV
|
|||
|
||||
desc->Format = d3dformat_from_wined3dformat(wined3d_desc.format);
|
||||
desc->Type = wined3d_desc.resource_type;
|
||||
desc->Usage = wined3d_desc.usage;
|
||||
desc->Usage = wined3d_desc.usage & WINED3DUSAGE_MASK;
|
||||
desc->Pool = wined3d_desc.pool;
|
||||
desc->Size = wined3d_desc.size;
|
||||
desc->Width = wined3d_desc.width;
|
||||
|
|
|
@ -265,7 +265,7 @@ static HRESULT WINAPI IDirect3DVolumeTexture8Impl_GetLevelDesc(IDirect3DVolumeTe
|
|||
wined3d_resource_get_desc(sub_resource, &wined3d_desc);
|
||||
desc->Format = d3dformat_from_wined3dformat(wined3d_desc.format);
|
||||
desc->Type = wined3d_desc.resource_type;
|
||||
desc->Usage = wined3d_desc.usage;
|
||||
desc->Usage = wined3d_desc.usage & WINED3DUSAGE_MASK;
|
||||
desc->Pool = wined3d_desc.pool;
|
||||
desc->Size = wined3d_desc.size;
|
||||
desc->Width = wined3d_desc.width;
|
||||
|
|
Loading…
Reference in a new issue