diff options
author | Courtney Goeltzenleuchter <[email protected]> | 2013-11-13 16:24:56 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2014-01-20 11:31:50 -0800 |
commit | d4dc359875126c432e46e3d1da8610a066d21302 (patch) | |
tree | 192fb0ceaebd5faf767c03c2540f3703091d03b0 /src/mesa/main/get.c | |
parent | 0e60d85029105ffdfd325186813b65232c5d2725 (diff) |
mesa: Convert gl_viewport_attrib::Near and ::Far to double
v4: Split out from a single megapatch. Suggested by Ken.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r-- | src/mesa/main/get.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 2189b3173e7..ad6096baac8 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -697,6 +697,11 @@ find_custom_value(struct gl_context *ctx, const struct value_desc *d, union valu v->value_int_4[3] = ctx->Viewport.Height; break; + case GL_DEPTH_RANGE: + v->value_double_2[0] = ctx->Viewport.Near; + v->value_double_2[1] = ctx->Viewport.Far; + break; + case GL_ACTIVE_STENCIL_FACE_EXT: v->value_enum = ctx->Stencil.ActiveFace ? GL_BACK : GL_FRONT; break; |