diff options
author | Alan Hourihane <[email protected]> | 2008-06-12 00:11:54 +0100 |
---|---|---|
committer | Alan Hourihane <[email protected]> | 2008-06-12 00:11:54 +0100 |
commit | 6f7ed99b306990f284f9d57c0b66efaa7f2277e1 (patch) | |
tree | 23819c5863553573f6cf70de8e5ee127a875b63b /src/mesa/drivers/dri/common/drirenderbuffer.c | |
parent | 2161b0fafcdc16703162dd489d2ec1e7114cce4c (diff) |
revert the DRI2 commits
Diffstat (limited to 'src/mesa/drivers/dri/common/drirenderbuffer.c')
-rw-r--r-- | src/mesa/drivers/dri/common/drirenderbuffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/drirenderbuffer.c b/src/mesa/drivers/dri/common/drirenderbuffer.c index d36af3e5bee..d34da53479e 100644 --- a/src/mesa/drivers/dri/common/drirenderbuffer.c +++ b/src/mesa/drivers/dri/common/drirenderbuffer.c @@ -209,6 +209,8 @@ driUpdateFramebufferSize(GLcontext *ctx, const __DRIdrawablePrivate *dPriv) struct gl_framebuffer *fb = (struct gl_framebuffer *) dPriv->driverPrivate; if (fb && (dPriv->w != fb->Width || dPriv->h != fb->Height)) { ctx->Driver.ResizeBuffers(ctx, fb, dPriv->w, dPriv->h); + /* if the driver needs the hw lock for ResizeBuffers, the drawable + might have changed again by now */ assert(fb->Width == dPriv->w); assert(fb->Height == dPriv->h); } |