wined3d: Pass an IWineD3DBaseTextureImpl pointer to basetexture_get_lod().
This commit is contained in:
parent
482a5fd030
commit
54e1aeeb62
|
@ -157,13 +157,11 @@ DWORD basetexture_set_lod(IWineD3DBaseTextureImpl *texture, DWORD lod)
|
||||||
return old;
|
return old;
|
||||||
}
|
}
|
||||||
|
|
||||||
DWORD basetexture_get_lod(IWineD3DBaseTexture *iface)
|
DWORD basetexture_get_lod(IWineD3DBaseTextureImpl *texture)
|
||||||
{
|
{
|
||||||
IWineD3DBaseTextureImpl *This = (IWineD3DBaseTextureImpl *)iface;
|
TRACE("texture %p, returning %u.\n", texture, texture->baseTexture.LOD);
|
||||||
|
|
||||||
TRACE("(%p) : returning %d\n", This, This->baseTexture.LOD);
|
return texture->baseTexture.LOD;
|
||||||
|
|
||||||
return This->baseTexture.LOD;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DWORD basetexture_get_level_count(IWineD3DBaseTextureImpl *texture)
|
DWORD basetexture_get_level_count(IWineD3DBaseTextureImpl *texture)
|
||||||
|
|
|
@ -251,7 +251,7 @@ static DWORD WINAPI IWineD3DCubeTextureImpl_SetLOD(IWineD3DCubeTexture *iface, D
|
||||||
}
|
}
|
||||||
|
|
||||||
static DWORD WINAPI IWineD3DCubeTextureImpl_GetLOD(IWineD3DCubeTexture *iface) {
|
static DWORD WINAPI IWineD3DCubeTextureImpl_GetLOD(IWineD3DCubeTexture *iface) {
|
||||||
return basetexture_get_lod((IWineD3DBaseTexture *)iface);
|
return basetexture_get_lod((IWineD3DBaseTextureImpl *)iface);
|
||||||
}
|
}
|
||||||
|
|
||||||
static DWORD WINAPI IWineD3DCubeTextureImpl_GetLevelCount(IWineD3DCubeTexture *iface)
|
static DWORD WINAPI IWineD3DCubeTextureImpl_GetLevelCount(IWineD3DCubeTexture *iface)
|
||||||
|
|
|
@ -242,7 +242,7 @@ static DWORD WINAPI IWineD3DTextureImpl_SetLOD(IWineD3DTexture *iface, DWORD LOD
|
||||||
}
|
}
|
||||||
|
|
||||||
static DWORD WINAPI IWineD3DTextureImpl_GetLOD(IWineD3DTexture *iface) {
|
static DWORD WINAPI IWineD3DTextureImpl_GetLOD(IWineD3DTexture *iface) {
|
||||||
return basetexture_get_lod((IWineD3DBaseTexture *)iface);
|
return basetexture_get_lod((IWineD3DBaseTextureImpl *)iface);
|
||||||
}
|
}
|
||||||
|
|
||||||
static DWORD WINAPI IWineD3DTextureImpl_GetLevelCount(IWineD3DTexture *iface)
|
static DWORD WINAPI IWineD3DTextureImpl_GetLevelCount(IWineD3DTexture *iface)
|
||||||
|
|
|
@ -206,7 +206,7 @@ static DWORD WINAPI IWineD3DVolumeTextureImpl_SetLOD(IWineD3DVolumeTexture *ifac
|
||||||
}
|
}
|
||||||
|
|
||||||
static DWORD WINAPI IWineD3DVolumeTextureImpl_GetLOD(IWineD3DVolumeTexture *iface) {
|
static DWORD WINAPI IWineD3DVolumeTextureImpl_GetLOD(IWineD3DVolumeTexture *iface) {
|
||||||
return basetexture_get_lod((IWineD3DBaseTexture *)iface);
|
return basetexture_get_lod((IWineD3DBaseTextureImpl *)iface);
|
||||||
}
|
}
|
||||||
|
|
||||||
static DWORD WINAPI IWineD3DVolumeTextureImpl_GetLevelCount(IWineD3DVolumeTexture *iface)
|
static DWORD WINAPI IWineD3DVolumeTextureImpl_GetLevelCount(IWineD3DVolumeTexture *iface)
|
||||||
|
|
|
@ -1917,7 +1917,7 @@ void basetexture_cleanup(IWineD3DBaseTextureImpl *texture) DECLSPEC_HIDDEN;
|
||||||
void basetexture_generate_mipmaps(IWineD3DBaseTexture *iface) DECLSPEC_HIDDEN;
|
void basetexture_generate_mipmaps(IWineD3DBaseTexture *iface) DECLSPEC_HIDDEN;
|
||||||
WINED3DTEXTUREFILTERTYPE basetexture_get_autogen_filter_type(IWineD3DBaseTexture *iface) DECLSPEC_HIDDEN;
|
WINED3DTEXTUREFILTERTYPE basetexture_get_autogen_filter_type(IWineD3DBaseTexture *iface) DECLSPEC_HIDDEN;
|
||||||
DWORD basetexture_get_level_count(IWineD3DBaseTextureImpl *texture) DECLSPEC_HIDDEN;
|
DWORD basetexture_get_level_count(IWineD3DBaseTextureImpl *texture) DECLSPEC_HIDDEN;
|
||||||
DWORD basetexture_get_lod(IWineD3DBaseTexture *iface) DECLSPEC_HIDDEN;
|
DWORD basetexture_get_lod(IWineD3DBaseTextureImpl *texture) DECLSPEC_HIDDEN;
|
||||||
IWineD3DResourceImpl *basetexture_get_sub_resource(IWineD3DBaseTextureImpl *texture,
|
IWineD3DResourceImpl *basetexture_get_sub_resource(IWineD3DBaseTextureImpl *texture,
|
||||||
UINT sub_resource_idx) DECLSPEC_HIDDEN;
|
UINT sub_resource_idx) DECLSPEC_HIDDEN;
|
||||||
HRESULT basetexture_init(IWineD3DBaseTextureImpl *texture, UINT layer_count, UINT level_count,
|
HRESULT basetexture_init(IWineD3DBaseTextureImpl *texture, UINT layer_count, UINT level_count,
|
||||||
|
|
Loading…
Reference in New Issue