diff options
author | Mathias Fröhlich <Mathias.Froehlich@gmx.net> | 2014-09-21 18:09:22 +0200 |
---|---|---|
committer | Mathias Fröhlich <Mathias.Froehlich@gmx.net> | 2014-10-24 19:21:21 +0200 |
commit | 34a3c97fe6d273d68d2ee80386791832824f3211 (patch) | |
tree | e81d1cc8c1f5107e223ff2ea350c3889e8ef52eb /src/mesa/main/attrib.c | |
parent | 6340e609a354770e04192b9b44e91fb06aab0159 (diff) | |
download | external_mesa3d-34a3c97fe6d273d68d2ee80386791832824f3211.zip external_mesa3d-34a3c97fe6d273d68d2ee80386791832824f3211.tar.gz external_mesa3d-34a3c97fe6d273d68d2ee80386791832824f3211.tar.bz2 |
mesa: Implement ARB_clip_control.
Implement the mesa parts of ARB_clip_control.
So far no driver enables this.
v3:
Restrict getting clip control state to the availability
of ARB_clip_control.
Move to transformation state.
Handle clip control state with the GL_TRANSFORM_BIT.
Move _FrontBit update into state.c.
Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de>
Diffstat (limited to 'src/mesa/main/attrib.c')
-rw-r--r-- | src/mesa/main/attrib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index d90e662..5345339 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -1345,6 +1345,7 @@ _mesa_PopAttrib(void) if (xform->DepthClamp != ctx->Transform.DepthClamp) _mesa_set_enable(ctx, GL_DEPTH_CLAMP, ctx->Transform.DepthClamp); + _mesa_ClipControl(xform->ClipOrigin, xform->ClipDepthMode); } break; case GL_TEXTURE_BIT: |