diff options
author | Ian Romanick <[email protected]> | 2014-10-24 17:59:05 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2014-10-24 19:24:54 -0700 |
commit | 3e462d9221191dc64444862614c1616a33691f67 (patch) | |
tree | faa082ac2ede78be448fe04319305b6ed0983e79 /src/mesa/drivers/common/meta.c | |
parent | f9a9054b61d3dc9b7175fb36730d5cf06bbf7456 (diff) |
meta: Only use _mesa_ClipControl if the extension is supported
Fixes many piglit failures on IVB since 85edaa8.
Signed-off-by: Ian Romanick <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=85425
Reviewed-by: Jason Ekstrand <[email protected]>
Cc: Mathias Fröhlich <[email protected]>
Diffstat (limited to 'src/mesa/drivers/common/meta.c')
-rw-r--r-- | src/mesa/drivers/common/meta.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index 45c50fd5d8f..87532c1dfea 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/drivers/common/meta.c @@ -681,9 +681,11 @@ _mesa_meta_begin(struct gl_context *ctx, GLbitfield state) 0.0, ctx->DrawBuffer->Height, -1.0, 1.0); - save->ClipOrigin = ctx->Transform.ClipOrigin; - save->ClipDepthMode = ctx->Transform.ClipDepthMode; - _mesa_ClipControl(GL_LOWER_LEFT, GL_NEGATIVE_ONE_TO_ONE); + if (ctx->Extensions.ARB_clip_control) { + save->ClipOrigin = ctx->Transform.ClipOrigin; + save->ClipDepthMode = ctx->Transform.ClipDepthMode; + _mesa_ClipControl(GL_LOWER_LEFT, GL_NEGATIVE_ONE_TO_ONE); + } } if (state & MESA_META_CLIP) { @@ -1086,7 +1088,8 @@ _mesa_meta_end(struct gl_context *ctx) _mesa_MatrixMode(save->MatrixMode); - _mesa_ClipControl(save->ClipOrigin, save->ClipDepthMode); + if (ctx->Extensions.ARB_clip_control) + _mesa_ClipControl(save->ClipOrigin, save->ClipDepthMode); } if (state & MESA_META_CLIP) { |