Bug 1282424 - initialize member variable |mSpecularConstantInt| in SpecularLightingSoftware. r?jrmuizel
MozReview-Commit-ID: 8ch1A9bGiBj
--- a/gfx/2d/FilterNodeSoftware.cpp
+++ b/gfx/2d/FilterNodeSoftware.cpp
@@ -3578,16 +3578,17 @@ DiffuseLightingSoftware::LightPixel(cons
umin(uint32_t(diffuseNL * color.components[B8G8R8A8_COMPONENT_BYTEOFFSET_R]), 255U);
color.components[B8G8R8A8_COMPONENT_BYTEOFFSET_A] = 255;
return color.bgra;
}
SpecularLightingSoftware::SpecularLightingSoftware()
: mSpecularConstant(0)
, mSpecularExponent(0)
+ , mSpecularConstantInt(0)
{
}
bool
SpecularLightingSoftware::SetAttribute(uint32_t aIndex, Float aValue)
{
switch (aIndex) {
case ATT_SPECULAR_LIGHTING_SPECULAR_CONSTANT: