mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
radeon: Always initialize front and back renderbuffers if present
This fixes an assertion in glReadPixels from the front buffer. Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
This commit is contained in:
parent
9fa0d25c54
commit
dbb56687c8
1 changed files with 1 additions and 2 deletions
|
|
@ -487,8 +487,7 @@ radeon_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable)
|
|||
struct radeon_renderbuffer *stencil_rb;
|
||||
|
||||
i = 0;
|
||||
if ((radeon->is_front_buffer_rendering || !draw->color_rb[1])
|
||||
&& draw->color_rb[0]) {
|
||||
if (draw->color_rb[0]) {
|
||||
attachments[i++] = __DRI_BUFFER_FRONT_LEFT;
|
||||
attachments[i++] = radeon_bits_per_pixel(draw->color_rb[0]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue