- removed the direct setters for the blend mode state.

This will now always have to go through the render state.
This commit is contained in:
Christoph Oelckers 2018-10-21 14:26:14 +02:00
commit 0af65a8fa0
6 changed files with 10 additions and 25 deletions

View file

@ -537,8 +537,7 @@ 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.SetRenderStyle(STYLE_Translucent);
gl_RenderState.SetVertexBuffer(mVBO);
gl_RenderState.EnableTexture(true);
gl_RenderState.EnableBrightmap(true);