projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mesa: Add support for AMD_depth_clamp_separate
[mesa.git]
/
src
/
mesa
/
swrast
/
s_span.c
diff --git
a/src/mesa/swrast/s_span.c
b/src/mesa/swrast/s_span.c
index 87b72e81970440daf87a1677bc3b7f40278ab9e4..f50b549a97fe6c8849a6bdbaf9293ed79a57a381 100644
(file)
--- a/
src/mesa/swrast/s_span.c
+++ b/
src/mesa/swrast/s_span.c
@@
-1219,7
+1219,7
@@
_swrast_write_rgba_span( struct gl_context *ctx, SWspan *span)
if (!(span->arrayMask & SPAN_Z))
_swrast_span_interpolate_z(ctx, span);
- if (ctx->Transform.DepthClamp)
+ if (ctx->Transform.DepthClamp
Near && ctx->Transform.DepthClampFar
)
_swrast_depth_clamp_span(ctx, span);
if (_mesa_stencil_is_enabled(ctx)) {