anura-engine / anura

Anura Engine
Other
384 stars 78 forks source link

Specifying an end_zorder for a level.frame_buffer_shaders entry of greater than the maximum used results in an unexpected error. #341

Open DDR0 opened 2 years ago

DDR0 commented 2 years ago
add(level.frame_buffer_shaders, [{
    begin_zorder: -9999999,
    end_zorder:   9999999,
    shader_info: 'liquid',
    label: me.type,
}])

CRITICAL: FboOGL.cpp:305 ASSERTION FAILED: Our FBO id was not the one at the top of the stack. This should never happen if calls to apply/unapply are balanced.

The fix is to set end_zorder to -90 or something, but this shouldn't be necessary - it should be possible to just cover all values with a wide range of zorders.