Bug 1282424 - initialize member variable |mSpecularConstantInt| in SpecularLightingSoftware. r?jrmuizel draft
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Mon, 27 Jun 2016 16:26:01 +0300
changeset 381482 ddd20c9803adeeef2a2822cde929f6ac8dcc371d
parent 381233 0e073f5ca38a002d43e92016ee40d686da4a0534
child 523971 3a95c01bb9a311dcf3e603d0ad9d38a638a8d4b5
push id21487
push userbmo:bpostelnicu@mozilla.com
push dateMon, 27 Jun 2016 13:26:25 +0000
reviewersjrmuizel
bugs1282424
milestone50.0a1
Bug 1282424 - initialize member variable |mSpecularConstantInt| in SpecularLightingSoftware. r?jrmuizel MozReview-Commit-ID: 8ch1A9bGiBj
gfx/2d/FilterNodeSoftware.cpp
--- 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: