summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-06-29 15:44:13 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-06-29 15:44:13 +0000
commit787f4965a2141902c6a7298cd0f2c6c992444ed8 (patch)
tree96ed154ee86c271586cdc2596325f3931355daef /src/mesa/drivers
parentb10ea9843b63df6aa91fb6736ea8a8420a077adf (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.c4
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;