glsl: use without_array() rather than get_scalar_type()
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 26 Apr 2017 03:56:44 +0000 (13:56 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 26 Apr 2017 22:21:21 +0000 (08:21 +1000)
commit52c76dbad39a96995624796b8363fed0ac065a18
tree43df0e615fa4c55b63f5f7053747cf95fb0b2b97
parent28feb63580e94085dd47d5391f9f6f20d69eea6c
glsl: use without_array() rather than get_scalar_type()

Here get_scalar_type() was just being use to remove the array
after that we converted it back to base_type anyway so just
use the without_array() helper.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/compiler/glsl/ast_to_hir.cpp