summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i915tex/intel_context.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2007-03-19 18:34:27 +0100
committerMichel Dänzer <michel@tungstengraphics.com>2007-03-19 18:34:27 +0100
commit07db8c9115c0b07d79be778976e25f8eb18d42a2 (patch)
tree2b72f9ccd7624afe9ea4aad3f12e49888513fe76 /src/mesa/drivers/dri/i915tex/intel_context.c
parent9b42100c04f14b4f2c1e5fe9748bb0519ed6c516 (diff)
i915tex: The intended triple buffering fix.
Making modifications while the editor spawned by git-commit was suspended didn't have the intended effect.
Diffstat (limited to 'src/mesa/drivers/dri/i915tex/intel_context.c')
-rw-r--r--src/mesa/drivers/dri/i915tex/intel_context.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i915tex/intel_context.c b/src/mesa/drivers/dri/i915tex/intel_context.c
index 5c2cdf0c7d..acda7b1c16 100644
--- a/src/mesa/drivers/dri/i915tex/intel_context.c
+++ b/src/mesa/drivers/dri/i915tex/intel_context.c
@@ -581,11 +581,7 @@ intelMakeCurrent(__DRIcontextPrivate * driContextPriv,
}
/* set GLframebuffer size to match window, if needed */
- if (intel_fb->Base.Width != driDrawPriv->w) {
- _mesa_resize_framebuffer(&intel->ctx, &intel_fb->Base,
- driDrawPriv->w, driDrawPriv->h);
- }
- if (readFb->Width != driReadPriv->w) {
+ if (driReadPriv != driDrawPriv && readFb->Width != driReadPriv->w) {
_mesa_resize_framebuffer(&intel->ctx, readFb,
driReadPriv->w, driReadPriv->h);
}