From 787f4965a2141902c6a7298cd0f2c6c992444ed8 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 29 Jun 2006 15:44:13 +0000 Subject: [PATCH] only assert front/back pitch if double-buffered (bug 7663) --- src/mesa/drivers/dri/unichrome/via_context.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.30.2