diff options
author | Kristian Høgsberg <[email protected]> | 2010-05-11 10:32:40 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2010-05-11 10:32:40 -0400 |
commit | f829e76d8835382b8a52224dfbb2556360e41ffc (patch) | |
tree | 76cf560f592a2da934106492b955e7a384815dc0 /src | |
parent | db2993faa0211b60efd46016de5d07110cb9777a (diff) |
intel: Don't update renderbuffers in intelSetTexBuffer2 if we have invalidate
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_tex_image.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex_image.c b/src/mesa/drivers/dri/intel/intel_tex_image.c index 136fda27f65..7784223abba 100644 --- a/src/mesa/drivers/dri/intel/intel_tex_image.c +++ b/src/mesa/drivers/dri/intel/intel_tex_image.c @@ -728,7 +728,9 @@ intelSetTexBuffer2(__DRIcontext *pDRICtx, GLint target, if (!intelObj) return; - intel_update_renderbuffers(pDRICtx, dPriv); + if (dPriv->lastStamp != dPriv->dri2.stamp || + !pDRICtx->driScreenPriv->dri2.useInvalidate) + intel_update_renderbuffers(pDRICtx, dPriv); rb = intel_get_renderbuffer(fb, BUFFER_FRONT_LEFT); /* If the region isn't set, then intel_update_renderbuffers was unable |