mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
only assert front/back pitch if double-buffered (bug 7663)
This commit is contained in:
parent
b10ea9843b
commit
787f4965a2
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue