1. 11 Jul, 2017 2 commits
    • Fix accepting arrays as array indices · 37d96cce
      Olli Etuaho authored
      Previously, arrays were being incorrectly accepted as array indices.
      This was because the isScalar() check only checked that the type was
      not a vector or matrix, but still returned true for scalar arrays.
      
      This patch changes the isScalar() check so that it returns false for
      arrays. This makes usage of the term "scalar" more consistent in the
      shader translator. Most of the code using isScalar() was compatible
      with this change. Code in util.cpp that used to assume that isScalar()
      doesn't care about arrayness is refactored to work with the new
      behavior.
      
      BUG=angleproject:2102
      TEST=angle_unittests
      
      Change-Id: I2a7f4c30fca7917d1099d0400efe3de859338b2a
    • Remove TIntermediate::addConstantUnion · 56229f1b
      Olli Etuaho authored
      This includes asserts in TConstantUnion to reveal incorrect usage of
      union - reading a different field of an union that has last been set
      is undefined behavior in C++.
      
      Existing issues with accessing incorrect fields of constant unions
      are fixed.
      
      BUG=angleproject:1490
      TEST=angle_unittests
      
      Change-Id: Idd6b7a871d73e2928f117a9348c92043612fab82
  2. 10 Jul, 2017 3 commits
  3. 09 Jul, 2017 1 commit
  4. 07 Jul, 2017 5 commits
  5. 06 Jul, 2017 7 commits
  6. 05 Jul, 2017 12 commits
  7. 04 Jul, 2017 3 commits
  8. 03 Jul, 2017 2 commits
  9. 30 Jun, 2017 5 commits