glsl: add missing check for samplers in set_opaque_binding()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 11 May 2017 10:31:26 +0000 (12:31 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 11 May 2017 19:08:28 +0000 (21:08 +0200)
commita29810e27ccfc1de2341ce044a68c9345d53599e
treea2a4aba4ce7539ab37162526665cde98887992f1
parentbe7a9066d9c45ee69218b294f27501796782b3a8
glsl: add missing check for samplers in set_opaque_binding()

Like images, this prevents out-of-bound access when the explicit
binding layout qualifier is used with an array which contains
too much samplers.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/glsl/link_uniform_initializers.cpp