st/nine: SetAutoGenFilterType should regenerate the sublevels
authorAxel Davy <axel.davy@ens.fr>
Sun, 3 May 2015 21:28:25 +0000 (23:28 +0200)
committerAxel Davy <axel.davy@ens.fr>
Fri, 21 Aug 2015 20:21:46 +0000 (22:21 +0200)
It should regenerate the sublevels according to the spec

Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/basetexture9.c

index cc74cc9380fb138f6bc0fadaf4eb88ae0930e783..728aafd9a593844bdae460388291ff00719e6533 100644 (file)
@@ -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;
 }