From: Brian Paul Date: Thu, 29 Jun 2006 15:44:13 +0000 (+0000) Subject: only assert front/back pitch if double-buffered (bug 7663) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=787f4965a2141902c6a7298cd0f2c6c992444ed8;p=mesa.git only assert front/back pitch if double-buffered (bug 7663) --- diff --git a/src/mesa/drivers/dri/unichrome/via_context.c b/src/mesa/drivers/dri/unichrome/via_context.c index 183f3d3479f..dabb233fc02 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;