summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2015-05-03 23:28:25 +0200
committerAxel Davy <[email protected]>2015-08-21 22:21:46 +0200
commite4f69bc394e1b92e3d1dabf320258425c2876091 (patch)
tree0c439a559af80c9e1ec1c09277f066febf9b56a0 /src/gallium/state_trackers
parentb75f830166eaf294e43746f1bf5630f7f2dcf30f (diff)
st/nine: SetAutoGenFilterType should regenerate the sublevels
It should regenerate the sublevels according to the spec Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/nine/basetexture9.c2
1 files changed, 2 insertions, 0 deletions
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;
}