From 1ee1c8e1ed6d74a85c3824c923e37ace98cd9899 Mon Sep 17 00:00:00 2001
From: John Kessenich <cepheus@frii.com>
Date: Mon, 8 May 2017 00:47:48 -0600
Subject: [PATCH] Build: Fix portability in previous commit.

---
 glslang/MachineIndependent/Initialize.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/glslang/MachineIndependent/Initialize.cpp b/glslang/MachineIndependent/Initialize.cpp
index d47f771e7..af5ee05f7 100644
--- a/glslang/MachineIndependent/Initialize.cpp
+++ b/glslang/MachineIndependent/Initialize.cpp
@@ -3851,7 +3851,8 @@ void TBuiltIns::add2ndGenerationSamplingImaging(int version, EProfile profile, c
                                     // samplerBuffer and textureBuffer types.
                                     sampler.setTexture(sampler.type, sampler.dim, sampler.arrayed, sampler.shadow,
                                                        sampler.ms);
-                                    addSamplingFunctions(sampler, sampler.getString(), version, profile);
+                                    typeName = sampler.getString();
+                                    addSamplingFunctions(sampler, typeName, version, profile);
                                 }
                             }
                         }
-- 
GitLab