From ab5a10768c225230aad25299d129269c88df1e54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Mon, 18 May 2009 17:30:36 +0200 Subject: [PATCH] Initialize pixel data before glReadPixels(). --- clutter/clutter-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c index af7621701..52193ecb1 100644 --- a/clutter/clutter-main.c +++ b/clutter/clutter-main.c @@ -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;