summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-10-01 14:14:06 -0700
committerEric Anholt <eric@anholt.net>2008-10-01 14:21:39 -0700
commita89ac068e436bfdd615379e6c1c5fa33c356d476 (patch)
treeb3a226c852a72f1881db26029cb95c11b60c59ba
parenta1688dc4a297d4afe1bd62b5f4ec6e1aa41a93ff (diff)
i965: Fix overwriting of depth override for SetTexOffset.
Fixes black borders around windows in compiz. Bug #17233. (cherry picked from commit df6ae3f0a39f95cb1199ac16c98be2bf9a3bc96f)
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm_surface_state.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
index 8fcd50924f..ebef27cb9a 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
@@ -274,7 +274,6 @@ brw_update_texture_surface( GLcontext *ctx, GLuint unit )
key.width = firstImage->Width;
key.height = firstImage->Height;
key.cpp = intelObj->mt->cpp;
- key.depth = firstImage->Depth;
key.tiling = intelObj->mt->region->tiling;
dri_bo_unreference(brw->wm.surf_bo[unit + MAX_DRAW_BUFFERS]);