Assertion in Dying Light
@notaz
Submitted by Grazvydas Ignotas Assigned to mes..@..op.org
Link to original bug (#105139)
Description
Dying Light triggers an assertion when switching from fullscreen to windowed mode:
DyingLightGame: state_tracker/st_atom_framebuffer.c:201: st_update_framebuffer_state: Assertion `!framebuffer.cbufs[i] || framebuffer.cbufs[i]->texture->bind & PIPE_BIND_RENDER_TARGET' failed.
(gdb) p i
$1 = 0
(gdb) p framebuffer.nr_cbufs
$2 = 1 '\001'
(gdb) p framebuffer.cbufs[i]
$3 = (struct pipe_surface *) 0x1a132450
(gdb) p framebuffer.cbufs[i]->texture->bind
$4 = 9
The assert wants PIPE_BIND_RENDER_TARGET but PIPE_BIND_DEPTH_STENCIL|PIPE_BIND_SAMPLER_VIEW is set.
Version: git