3 Replies Latest reply on Jul 20, 2011 10:36 AM by gat3way

    Bug in SDK 2.4 : "if"

    spectral

      Hi,

      I use the following code, it display 'rayType', the printed value is always RAYTYPE_DIFFUSE. 

       

              printf("%d\n", nextEventPath.rayType);

              if (nextEventPath.rayType == RAYTYPE_DIFFUSE) {....}



      Like this the application DOES NOT ENTER into the IF !

      If I do this :

       

              printf("%d\n", nextEventPath.rayType);

              nextEventPath.rayType = RAYTYPE_DIFFUSE;

              if (nextEventPath.rayType == RAYTYPE_DIFFUSE) {....}



      It works !

       

      So, I don't know why, it 'print' that the value is DISPLAY_VALUE but it sounds that there is a problem with the IF.

      I work on the CPU !