Skip to content
Snippets Groups Projects
Commit 8db9b07c authored by HG1's avatar HG1 Committed by Ines Almeida
Browse files

Fix T33762 - texture fonts were not using the material color (gameengine)

parent f1a65a9f
No related branches found
No related tags found
No related merge requests found
......@@ -889,10 +889,10 @@ static bool ConvertMaterial(
// swap the material color, so MCol on bitmap font works
if (validmat && (use_vcol == false) && (mat->game.flag & GEMAT_TEXT))
{
rgb[0] = KX_rgbaint2uint_new(rgb[0]);
rgb[1] = KX_rgbaint2uint_new(rgb[1]);
rgb[2] = KX_rgbaint2uint_new(rgb[2]);
rgb[3] = KX_rgbaint2uint_new(rgb[3]);
material->rgb[0] = KX_rgbaint2uint_new(rgb[0]);
material->rgb[1] = KX_rgbaint2uint_new(rgb[1]);
material->rgb[2] = KX_rgbaint2uint_new(rgb[2]);
material->rgb[3] = KX_rgbaint2uint_new(rgb[3]);
}
if (validmat)
......
......@@ -47,10 +47,10 @@ BL_Material::BL_Material()
void BL_Material::Initialize()
{
rgb[0] = 0;
rgb[1] = 0;
rgb[2] = 0;
rgb[3] = 0;
rgb[0] = 0xFFFFFFFFL;
rgb[1] = 0xFFFFFFFFL;
rgb[2] = 0xFFFFFFFFL;
rgb[3] = 0xFFFFFFFFL;
IdMode = 0;
ras_mode = 0;
glslmat = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment