- fixed: The 2D drawer did not restore the blend mode after finishing.

This commit is contained in:
Christoph Oelckers 2018-07-20 19:46:53 +02:00
parent 18213f377c
commit 57f65a9379

View file

@ -556,6 +556,8 @@ void FGLRenderer::Draw2D(F2DDrawer *drawer)
}
glDisable(GL_SCISSOR_TEST);
gl_RenderState.BlendEquation(GL_FUNC_ADD);
gl_RenderState.BlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
gl_RenderState.SetVertexBuffer(mVBO);
gl_RenderState.EnableTexture(true);
gl_RenderState.EnableBrightmap(true);