mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
st/dri: Add missing front buffer case in dri_get_buffers().
This seems to help for compiz at least with some drivers. Also add an assert(0) to catch unhandled cases in the future.
This commit is contained in:
parent
0f0127f6f9
commit
de81b2cf0a
1 changed files with 4 additions and 0 deletions
|
|
@ -213,6 +213,7 @@ dri_get_buffers(__DRIdrawablePrivate * dPriv)
|
|||
dri_drawable->h, buffers[i].pitch);
|
||||
|
||||
switch (buffers[i].attachment) {
|
||||
case __DRI_BUFFER_FRONT_LEFT:
|
||||
case __DRI_BUFFER_FAKE_FRONT_LEFT:
|
||||
case __DRI_BUFFER_BACK_LEFT:
|
||||
drawable->color_format = surface->format;
|
||||
|
|
@ -222,6 +223,9 @@ dri_get_buffers(__DRIdrawablePrivate * dPriv)
|
|||
case __DRI_BUFFER_STENCIL:
|
||||
drawable->depth_stencil_format = surface->format;
|
||||
break;
|
||||
case __DRI_BUFFER_ACCUM:
|
||||
default:
|
||||
assert(0);
|
||||
}
|
||||
|
||||
st_set_framebuffer_surface(drawable->stfb, index, surface);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue