diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2006-06-29 15:44:13 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2006-06-29 15:44:13 +0000 |
commit | 787f4965a2141902c6a7298cd0f2c6c992444ed8 (patch) | |
tree | 96ed154ee86c271586cdc2596325f3931355daef /src/mesa/drivers | |
parent | b10ea9843b63df6aa91fb6736ea8a8420a077adf (diff) |
only assert front/back pitch if double-buffered (bug 7663)
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/unichrome/via_context.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_context.c b/src/mesa/drivers/dri/unichrome/via_context.c index 183f3d3479..dabb233fc0 100644 --- a/src/mesa/drivers/dri/unichrome/via_context.c +++ b/src/mesa/drivers/dri/unichrome/via_context.c @@ -336,7 +336,9 @@ calculate_buffer_parameters( struct via_context *vmesa, if( vmesa->viaScreen->width == vmesa->driDrawable->w && vmesa->viaScreen->height == vmesa->driDrawable->h ) { vmesa->doPageFlip = vmesa->allowPageFlip; - assert(vmesa->back.pitch == vmesa->front.pitch); + if (vmesa->hasBack) { + assert(vmesa->back.pitch == vmesa->front.pitch); + } } else vmesa->doPageFlip = GL_FALSE; |