Remove the blinkenlights in the background
authorPatrick Walton <pwalton@mozilla.com>
Tue, 07 Feb 2012 23:24:58 -0800
changeset 90903 a266d295b97d8ce8a266ed50bccc0069cdcc408e
parent 90902 970269505811f115110ac5f72ab2039e22d5bca7
child 90904 939db6b3f90aa04cdccc812c4366f9f5a43c0dd0
push idunknown
push userunknown
push dateunknown
milestone12.0a1
Remove the blinkenlights in the background
gfx/layers/opengl/LayerManagerOGL.cpp
--- a/gfx/layers/opengl/LayerManagerOGL.cpp
+++ b/gfx/layers/opengl/LayerManagerOGL.cpp
@@ -818,28 +818,17 @@ LayerManagerOGL::Render()
     WorldTransformRect(r);
     mGLContext->fScissor(r.x, r.y, r.width, r.height);
   } else {
     mGLContext->fScissor(0, 0, width, height);
   }
 
   mGLContext->fEnable(LOCAL_GL_SCISSOR_TEST);
 
-  static int i = 0;
-  i++;
-  i=i%3;
-  if( i == 0 ) {
-  mGLContext->fClearColor(1.0, 0.0, 0.0, 0.0);
-  } else if( i == 1 ) {
-  mGLContext->fClearColor(0.0, 0.0, 0.0, 0.0);
-  } else if( i == 2 ) {
-  mGLContext->fClearColor(1.0, 1.0, 0.0, 0.0);
-  } else {
-  mGLContext->fClearColor(0.0, 1.0, 0.0, 0.0);
-  }
+  mGLContext->fClearColor(1.0, 1.0, 1.0, 0.0);
   mGLContext->fClear(LOCAL_GL_COLOR_BUFFER_BIT | LOCAL_GL_DEPTH_BUFFER_BIT);
 
   // Render our layers.
   RootLayer()->RenderLayer(mGLContext->IsDoubleBuffered() ? 0 : mBackBufferFBO,
                            nsIntPoint(0, 0));
 
   mWidget->DrawWindowOverlay(this, rect);