i965: Fix overwriting of depth override for SetTexOffset.
authorEric Anholt <eric@anholt.net>
Wed, 1 Oct 2008 21:14:06 +0000 (14:14 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 1 Oct 2008 21:15:17 +0000 (14:15 -0700)
Fixes black borders around windows in compiz.  Bug #17233.

src/mesa/drivers/dri/i965/brw_wm_surface_state.c

index 47127c042105c6f74ae886a8c98f40c53403321c..3790b50c976111e73d60ab66c55711c7a8d5d31f 100644 (file)
@@ -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]);