summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/dri/common
diff options
context:
space:
mode:
authorLauri Kasanen <[email protected]>2012-01-24 21:37:07 +0200
committerAlex Deucher <[email protected]>2012-02-02 16:42:06 -0500
commitc5976017e31828dd67fb54e8c11b863fffcac70b (patch)
treeb48166e7a8a84c0fa5d904ae31fed0a7c6d38e3c /src/gallium/state_trackers/dri/common
parentcd2e2187cb45accb13bf89ef297324332c46f379 (diff)
gallium/postprocess: Fix depth logic
This prevents a possible lapse of the depth buffer - the situation where the app and pp have different depth buffers. NOTE: This is a candidate for the 8.0 stable branch. Signed-off-by: Lauri Kasanen <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/dri/common')
-rw-r--r--src/gallium/state_trackers/dri/common/dri_context.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/dri/common/dri_context.c b/src/gallium/state_trackers/dri/common/dri_context.c
index 52c8f4a254b..e07e16833a7 100644
--- a/src/gallium/state_trackers/dri/common/dri_context.c
+++ b/src/gallium/state_trackers/dri/common/dri_context.c
@@ -237,8 +237,7 @@ dri_make_current(__DRIcontext * cPriv,
if (draw->textures[ST_ATTACHMENT_BACK_LEFT] && draw->textures[ST_ATTACHMENT_DEPTH_STENCIL]
&& ctx->pp)
pp_init_fbos(ctx->pp, draw->textures[ST_ATTACHMENT_BACK_LEFT]->width0,
- draw->textures[ST_ATTACHMENT_BACK_LEFT]->height0,
- draw->textures[ST_ATTACHMENT_DEPTH_STENCIL]);
+ draw->textures[ST_ATTACHMENT_BACK_LEFT]->height0);
return GL_TRUE;
}