From: Axel Davy Date: Sun, 3 May 2015 21:28:25 +0000 (+0200) Subject: st/nine: SetAutoGenFilterType should regenerate the sublevels X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4f69bc394e1b92e3d1dabf320258425c2876091;p=mesa.git st/nine: SetAutoGenFilterType should regenerate the sublevels It should regenerate the sublevels according to the spec Signed-off-by: Axel Davy --- diff --git a/src/gallium/state_trackers/nine/basetexture9.c b/src/gallium/state_trackers/nine/basetexture9.c index cc74cc9380f..728aafd9a59 100644 --- a/src/gallium/state_trackers/nine/basetexture9.c +++ b/src/gallium/state_trackers/nine/basetexture9.c @@ -153,6 +153,8 @@ NineBaseTexture9_SetAutoGenFilterType( struct NineBaseTexture9 *This, user_assert(FilterType != D3DTEXF_NONE, D3DERR_INVALIDCALL); This->mipfilter = FilterType; + This->dirty_mip = TRUE; + NineBaseTexture9_GenerateMipSubLevels(This); return D3D_OK; }