diff options
author | Andre Maasikas <[email protected]> | 2010-01-22 14:06:10 +0200 |
---|---|---|
committer | Andre Maasikas <[email protected]> | 2010-01-22 14:14:01 +0200 |
commit | 70ccca42515e01f8e6c01b39128721f31edba041 (patch) | |
tree | 4bfd6ffcae78d6d009a41f4506304f6e64f6df7f /src/mesa/drivers/dri/r600/r700_state.c | |
parent | 9bf40cea00b2f509074bba3ace39c4ffbabdf047 (diff) |
r600: update vport z & clipping when depth_clamp is changed
fixes piglit depth_clamp
Diffstat (limited to 'src/mesa/drivers/dri/r600/r700_state.c')
-rw-r--r-- | src/mesa/drivers/dri/r600/r700_state.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_state.c b/src/mesa/drivers/dri/r600/r700_state.c index 3c8cb579f9b..a795f62ab73 100644 --- a/src/mesa/drivers/dri/r600/r700_state.c +++ b/src/mesa/drivers/dri/r600/r700_state.c @@ -59,6 +59,7 @@ static void r700SetClipPlaneState(GLcontext * ctx, GLenum cap, GLboolean state); static void r700UpdatePolygonMode(GLcontext * ctx); static void r700SetPolygonOffsetState(GLcontext * ctx, GLboolean state); static void r700SetStencilState(GLcontext * ctx, GLboolean state); +static void r700UpdateWindow(GLcontext * ctx, int id); void r700UpdateShaders(GLcontext * ctx) { @@ -780,6 +781,9 @@ static void r700Enable(GLcontext * ctx, GLenum cap, GLboolean state) //--------- case GL_LINE_STIPPLE: r700UpdateLineStipple(ctx); break; + case GL_DEPTH_CLAMP: + r700UpdateWindow(ctx, 0); + break; default: break; } |