mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Provides Canvas2D for sprite rendering.
Differential Revision: https://code.wildfiregames.com/D4029 This was SVN commit r25591.
This commit is contained in:
@@ -85,7 +85,7 @@ void CCanvas2D::DrawRect(const CRect& rect, const CColor& color)
|
||||
tech->BeginPass();
|
||||
CShaderProgramPtr shader = tech->GetShader();
|
||||
|
||||
shader->BindTexture(str_tex, g_Renderer.GetTextureManager().GetWhiteTexture());
|
||||
shader->BindTexture(str_tex, g_Renderer.GetTextureManager().GetTransparentTexture());
|
||||
shader->Uniform(str_transform, GetDefaultGuiMatrix());
|
||||
shader->Uniform(str_colorAdd, color);
|
||||
shader->Uniform(str_colorMul, CColor(0.0f, 0.0f, 0.0f, 0.0f));
|
||||
|
||||
Reference in New Issue
Block a user