diff options
author | Courtney Goeltzenleuchter <[email protected]> | 2013-11-13 16:24:56 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2014-01-20 11:31:56 -0800 |
commit | cbb271a48845c2d236f31327df316d42888a1907 (patch) | |
tree | a860c48f113d8171d31d77bacf1c341627e4c099 /src/mesa/main/get.c | |
parent | 5b84226c31e941219422f6d60c31524081b7a188 (diff) |
mesa: Convert gl_context::Viewport to gl_context::ViewportArray
Only element 0 of the array is used anywhere at this time, so there
should be no changes.
v4: Split out from a single megapatch. Suggested by Ken.
Signed-off-by: Courtney Goeltzenleuchter <[email protected]>
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 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index fa48195cdf4..c8accb6d261 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -691,15 +691,15 @@ find_custom_value(struct gl_context *ctx, const struct value_desc *d, union valu break; case GL_VIEWPORT: - v->value_float_4[0] = ctx->Viewport.X; - v->value_float_4[1] = ctx->Viewport.Y; - v->value_float_4[2] = ctx->Viewport.Width; - v->value_float_4[3] = ctx->Viewport.Height; + v->value_float_4[0] = ctx->ViewportArray[0].X; + v->value_float_4[1] = ctx->ViewportArray[0].Y; + v->value_float_4[2] = ctx->ViewportArray[0].Width; + v->value_float_4[3] = ctx->ViewportArray[0].Height; break; case GL_DEPTH_RANGE: - v->value_double_2[0] = ctx->Viewport.Near; - v->value_double_2[1] = ctx->Viewport.Far; + v->value_double_2[0] = ctx->ViewportArray[0].Near; + v->value_double_2[1] = ctx->ViewportArray[0].Far; break; case GL_ACTIVE_STENCIL_FACE_EXT: |