mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Moves hardcoded blend state in CCanvas2D to its technique.
This was SVN commit r26216.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user