Skip to content
Snippets Groups Projects
  1. Jan 04, 2017
  2. Jan 03, 2017
  3. Dec 22, 2016
  4. Dec 21, 2016
  5. Dec 20, 2016
  6. Dec 19, 2016
  7. Dec 17, 2016
  8. Dec 16, 2016
    • Nat Goodspeed's avatar
      DRTVWR-418: Fix a (correct) clang correctness complaint. · 050294a2
      Nat Goodspeed authored
      LLStatGraph::Threshold has an operator<(const Threshold& other) -- but because
      the method itself wasn't marked const, it could only be used on a non-const
      instance. This change fixes a case when it was applied to const instances.
      050294a2
    • Nat Goodspeed's avatar
      DRTVWR-418: Work around dubious cast from S32 to GLvoid* · c1ae63a8
      Nat Goodspeed authored
      when passing -- something -- to glVertexAttribPointerARB() in
      LLVertexBuffer::setupVertexArray().
      c1ae63a8
    • Nat Goodspeed's avatar
    • Nat Goodspeed's avatar
      DRTVWR-418: Put TYPE_INDEX within TYPE_MAX: stop undefined indexing. · 93268cb4
      Nat Goodspeed authored
      LLVertexBuffer::TYPE_INDEX was past TYPE_MAX, which is used to set the maximum
      sizes of various (scattered) arrays, bleh. The alarm bells that this SHOULD
      set off are indeed correct: TYPE_INDEX was being used to index at least one of
      those arrays, meaning we've been indexing past the end of that array, meaning
      undefined behavior.
      
      The enum that defines both TYPE_INDEX and TYPE_MAX provides a helpful comment
      indicating what things must be updated when modifying the enum. (Far better to
      define things centrally in a single place... but another time.) Update the
      designated arrays to include a final TYPE_INDEX entry. Contents of those
      entries are wild guesses -- but even wild guesses are better than completely
      indeterminate data.
      93268cb4
Loading