Bug 786626 - Initialize mLayerProgram. r=joe. landing on a CLOSED TREE
authorMatt Woodrow <mwoodrow@mozilla.com>
Sat, 29 Sep 2012 01:39:35 +1200
changeset 108593 84e550d568ce3cfd71eaf051cd9988acd69c998b
parent 108592 385d571499390152fafb9edc7576d4e611863eae
child 108594 26eb70f02c57c6da6d5a49b184c042efd077a941
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewersjoe
bugs786626
milestone18.0a1
Bug 786626 - Initialize mLayerProgram. r=joe. landing on a CLOSED TREE
gfx/layers/opengl/CanvasLayerOGL.h
--- a/gfx/layers/opengl/CanvasLayerOGL.h
+++ b/gfx/layers/opengl/CanvasLayerOGL.h
@@ -22,16 +22,17 @@ namespace layers {
 class THEBES_API CanvasLayerOGL :
   public CanvasLayer,
   public LayerOGL
 {
 public:
   CanvasLayerOGL(LayerManagerOGL *aManager)
     : CanvasLayer(aManager, NULL),
       LayerOGL(aManager),
+      mLayerProgram(gl::RGBALayerProgramType),
       mTexture(0),
       mTextureTarget(LOCAL_GL_TEXTURE_2D),
       mDelayedUpdates(false)
 #if defined(MOZ_X11) && !defined(MOZ_PLATFORM_MAEMO)
       ,mPixmap(0)
 #endif
   { 
       mImplData = static_cast<LayerOGL*>(this);