diff options
author | Kenneth Graunke <[email protected]> | 2014-11-03 18:16:41 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-11-03 18:26:08 -0800 |
commit | 8ca8dd123af78e9d4ff08f8fac2346e17fb7a0ee (patch) | |
tree | 6b02d2c5d7221478dbbb861fec7e9f0dfaf1c99b /src/mesa | |
parent | f7819650979d1fa5339af3eacfa1af1090bf53e8 (diff) |
mesa: Don't call _mesa_ClipControl from glPopAttrib when unsupported.
Otherwise, calling glPopAttrib on drivers that don't support
ARB_clip_control gives you a GL error, which is surprising at best.
Signed-off-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/attrib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index 5345339f6ad..4684615a880 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -1345,7 +1345,8 @@ _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); + if (ctx->Extensions.ARB_clip_control) + _mesa_ClipControl(xform->ClipOrigin, xform->ClipDepthMode); } break; case GL_TEXTURE_BIT: |