Moves hardcoded blend state in CCanvas2D to its technique.

This was SVN commit r26216.
This commit is contained in:
vladislavbelov
2022-01-14 17:44:42 +00:00
parent 1d9a8b2b0b
commit 829e37371b
2 changed files with 12 additions and 13 deletions
-5
View File
@@ -71,9 +71,6 @@ public:
if (Tech)
return;
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
CShaderDefines defines;
Tech = g_Renderer.GetShaderManager().LoadEffect(str_canvas2d, defines);
ENSURE(Tech);
@@ -87,8 +84,6 @@ public:
Tech->EndPass();
Tech.reset();
glDisable(GL_BLEND);
}
CShaderTechniquePtr Tech;