Initialize pixel data before glReadPixels().
authorOle André Vadla Ravnås <oleavr@gmail.com>
Mon, 18 May 2009 15:30:36 +0000 (17:30 +0200)
committerNeil Roberts <neil@linux.intel.com>
Tue, 28 Jul 2009 11:13:43 +0000 (12:13 +0100)
clutter/clutter-main.c

index af76217..52193ec 100644 (file)
@@ -373,7 +373,7 @@ _clutter_do_pick (ClutterStage   *stage,
                  ClutterPickMode mode)
 {
   ClutterMainContext *context;
-  guchar              pixel[4];
+  guchar              pixel[4] = { 0xff, 0xff, 0xff, 0xff };
   GLint               viewport[4];
   CoglColor           white;
   guint32             id;