diff options
author | Gustaw Smolarczyk <[email protected]> | 2017-03-30 20:09:29 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-04-08 20:29:58 +0200 |
commit | 6fa34de8308fd4abc2fb23aa9071a35cb08552c9 (patch) | |
tree | 378af442a2e421057c379b82f32052d9cf364c69 /src/mesa/main/enable.c | |
parent | c9b2938aeccfe131329b25e378264cc1d0080be2 (diff) |
mesa/main: Maintain compressed fog mode.
Signed-off-by: Gustaw Smolarczyk <[email protected]>
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main/enable.c')
-rw-r--r-- | src/mesa/main/enable.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index d9d63a6b4ba..ef278a318a1 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -385,6 +385,7 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state) return; FLUSH_VERTICES(ctx, _NEW_FOG); ctx->Fog.Enabled = state; + ctx->Fog._PackedEnabledMode = state ? ctx->Fog._PackedMode : FOG_NONE; break; case GL_LIGHT0: case GL_LIGHT1: |