From 9f780656dcc853acaa298fd6c815341edac2a15b Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 22 Jun 2013 14:10:06 +0000 Subject: [PATCH] gpu: implement blend function and alpha test in the renderer. --- neercs/video/render.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neercs/video/render.cpp b/neercs/video/render.cpp index fbade5a..ec18fa2 100644 --- a/neercs/video/render.cpp +++ b/neercs/video/render.cpp @@ -1453,9 +1453,9 @@ void Render::Draw2D() RenderContext rc; rc.SetAlphaBlend(true); + rc.SetBlendFunc(BlendFactor::SrcColor, BlendFactor::DstAlpha); glEnable(GL_TEXTURE_2D); - glBlendFunc(GL_SRC_COLOR, GL_DST_ALPHA); rc.SetClearColor(vec4(0.0f, 0.0f, 0.0f, 1.0f)); rc.SetClearDepth(1.0f); // set depth buffer