diff options
author | Xiang, Haihao <[email protected]> | 2008-07-18 17:40:11 +0800 |
---|---|---|
committer | Xiang, Haihao <[email protected]> | 2008-07-18 17:40:11 +0800 |
commit | b4b7326717d3253656f9702fc04f06f8d210a6aa (patch) | |
tree | 46bfccca9a3caa84ee2d79f0c506d82e2ee2a6b1 /src/mesa/drivers/dri/i965 | |
parent | 3bfedb7ed4a35cfcc7187bc22314833ef1d96ec9 (diff) |
intel: fix texture border issue. (bug #16697)
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fallback.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fallback.c b/src/mesa/drivers/dri/i965/brw_fallback.c index b5cf821a938..8a8fb50cb99 100644 --- a/src/mesa/drivers/dri/i965/brw_fallback.c +++ b/src/mesa/drivers/dri/i965/brw_fallback.c @@ -73,7 +73,10 @@ static GLboolean do_check_fallback(struct brw_context *brw) if (texUnit->_ReallyEnabled) { struct intel_texture_object *intelObj = intel_texture_object(texUnit->_Current); struct gl_texture_image *texImage = intelObj->base.Image[0][intelObj->firstLevel]; - if (texImage->Border) { + if (texImage->Border || + ((texImage->_BaseFormat == GL_DEPTH_COMPONENT) && + ((texImage->TexObject->WrapS == GL_CLAMP_TO_BORDER) || + (texImage->TexObject->WrapT == GL_CLAMP_TO_BORDER)))) { DBG("FALLBACK: texture border\n"); return GL_TRUE; } |