Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • compiler
  • translator
  • util.cpp
Find file
BlameHistoryPermalink
  • Olli Etuaho's avatar
    Fix accepting arrays as array indices · 37d96cce
    Olli Etuaho authored Jul 11, 2017
    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
    37d96cce
util.cpp 18.1 KB
EditWeb IDE
×

Replace util.cpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.