[opengtl-commits] [337] do not use unitialized values

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 337
Author:   cyrille
Date:     2008-08-31 17:30:37 +0200 (Sun, 31 Aug 2008)

Log Message:
-----------
do not use unitialized values

Modified Paths:
--------------
    trunk/OpenGTL/OpenShiva/tests/imagegenerators/Gradient.shiva


Modified: trunk/OpenGTL/OpenShiva/tests/imagegenerators/Gradient.shiva
===================================================================
--- trunk/OpenGTL/OpenShiva/tests/imagegenerators/Gradient.shiva	2008-08-31 15:25:56 UTC (rev 336)
+++ trunk/OpenGTL/OpenShiva/tests/imagegenerators/Gradient.shiva	2008-08-31 15:30:37 UTC (rev 337)
@@ -3,5 +3,7 @@
   void evaluatePixel(out pixel result)
   {
     result[0] = 0.5*( result.coord[0] / 200 + result.coord[1] / 300 );
+    result[1] = 0.0;
+    result[2] = 0.0;
   }
 }


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/