diff options
author | Francisco Jerez <currojerez@riseup.net> | 2010-03-18 14:13:36 +0100 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2010-03-18 15:02:36 +0100 |
commit | 1a812ab57a71d16e45ca44de7ae0570d2bd46674 (patch) | |
tree | ffadc077beccfc043366630e44b3aa4c342e9948 /src/mesa/drivers/dri/nouveau/nouveau_state.c | |
parent | d475eae50b15646efd83fa7f73ad7f2b40dd5206 (diff) |
dri/nouveau: Implement texture matrices.
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nouveau_state.c')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nouveau_state.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_state.c b/src/mesa/drivers/dri/nouveau/nouveau_state.c index bc610451b4..603a46ed24 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_state.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_state.c @@ -454,12 +454,19 @@ nouveau_state_emit(GLcontext *ctx) static void nouveau_update_state(GLcontext *ctx, GLbitfield new_state) { + int i; + if (new_state & (_NEW_PROJECTION | _NEW_MODELVIEW)) context_dirty(ctx, PROJECTION); if (new_state & _NEW_MODELVIEW) context_dirty(ctx, MODELVIEW); + if (new_state & _NEW_TEXTURE_MATRIX) { + for (i = 0; i < ctx->Const.MaxTextureCoordUnits; i++) + context_dirty_i(ctx, TEX_MAT, i); + } + if (new_state & _NEW_CURRENT_ATTRIB && new_state & _NEW_LIGHT) { context_dirty(ctx, MATERIAL_FRONT_AMBIENT); |