glsl: set mask via initialisation list rather than in constructor body
authorTimothy Arceri <tarceri@itsqueeze.com>
Sat, 20 May 2017 03:54:20 +0000 (13:54 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 22 May 2017 04:21:55 +0000 (14:21 +1000)
commit3ceae88642ddddf7c44b44df7b5c24ca0c7df878
tree20fa6c9d8006db79e43c30bd755263d86bbb68b4
parentcf164d9e975e2aa677b041c012cf843bd44e370a
glsl: set mask via initialisation list rather than in constructor body

Potentially more efficient as it may avoid the struct being initialised
twice.

Also add var to the initialisation list while we are here.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/compiler/glsl/ir.cpp