mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
meta: Only change and restore viewport 0 in mesa meta mode
The meta code was setting a default depth range for all viewports
and 'restoring' all viewports to depth range values saved from viewport 0.
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit 2a210b797e)
This commit is contained in:
parent
a09b91792c
commit
887a18018d
1 changed files with 2 additions and 2 deletions
|
|
@ -728,7 +728,7 @@ _mesa_meta_begin(struct gl_context *ctx, GLbitfield state)
|
|||
save->DepthNear = ctx->ViewportArray[0].Near;
|
||||
save->DepthFar = ctx->ViewportArray[0].Far;
|
||||
/* set depth range to default */
|
||||
_mesa_DepthRange(0.0, 1.0);
|
||||
_mesa_set_depth_range(ctx, 0, 0.0, 1.0);
|
||||
}
|
||||
|
||||
if (state & MESA_META_CLAMP_FRAGMENT_COLOR) {
|
||||
|
|
@ -1129,7 +1129,7 @@ _mesa_meta_end(struct gl_context *ctx)
|
|||
_mesa_set_viewport(ctx, 0, save->ViewportX, save->ViewportY,
|
||||
save->ViewportW, save->ViewportH);
|
||||
}
|
||||
_mesa_DepthRange(save->DepthNear, save->DepthFar);
|
||||
_mesa_set_depth_range(ctx, 0, save->DepthNear, save->DepthFar);
|
||||
}
|
||||
|
||||
if (state & MESA_META_CLAMP_FRAGMENT_COLOR &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue