[PATCH 4/6] wined3d: Remove a redundant check from basetexture_get_autogen_filter_type().
Henri Verbeet
hverbeet at codeweavers.com
Wed Aug 5 02:01:01 CDT 2009
This is already initialized to an appropriate value in basetexture_init().
Also fix the indentation while we're at it.
---
dlls/wined3d/basetexture.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/dlls/wined3d/basetexture.c b/dlls/wined3d/basetexture.c
index 086315e..2970108 100644
--- a/dlls/wined3d/basetexture.c
+++ b/dlls/wined3d/basetexture.c
@@ -176,12 +176,11 @@ HRESULT basetexture_set_autogen_filter_type(IWineD3DBaseTexture *iface, WINED3DT
WINED3DTEXTUREFILTERTYPE basetexture_get_autogen_filter_type(IWineD3DBaseTexture *iface)
{
- IWineD3DBaseTextureImpl *This = (IWineD3DBaseTextureImpl *)iface;
- FIXME("(%p) : stub\n", This);
- if (!(This->resource.usage & WINED3DUSAGE_AUTOGENMIPMAP)) {
- return WINED3DTEXF_NONE;
- }
- return This->baseTexture.filterType;
+ IWineD3DBaseTextureImpl *This = (IWineD3DBaseTextureImpl *)iface;
+
+ FIXME("(%p) : stub\n", This);
+
+ return This->baseTexture.filterType;
}
void basetexture_generate_mipmaps(IWineD3DBaseTexture *iface)
--
1.6.0.6
More information about the wine-patches
mailing list