Mesa was throwing a GL_INVALID_OPERATION from the glDrawArrays call further down because an advanced blending mode was still enabled, while the scene fragment shader has no blend_support.
See this test in _mesa_update_valid_to_render_state for the code which detected this condition.
Mesa was throwing a
GL_INVALID_OPERATION
from theglDrawArrays
call further down because an advanced blending mode was still enabled, while the scene fragment shader has noblend_support
.See this test in
_mesa_update_valid_to_render_state
for the code which detected this condition.The blending mode was likely last set from
inSetBlendMode
in source/inochi2d/core/nodes/common.d.This patch resets the blend equation before drawing the scene.
Fixes Inochi2D/inochi-session#36.