From 2e04906c90d69b4fad7a6a75a186ecd4de69d224 Mon Sep 17 00:00:00 2001 From: mmurrian <59980109+mmurrian@users.noreply.github.com> Date: Thu, 7 Apr 2022 09:37:36 -0400 Subject: [PATCH] Update DisplaySettings.cpp DisplaySettings::setDisplaySettings sets _shaderHint from itself (potentially uninitialized) --- src/osg/DisplaySettings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/DisplaySettings.cpp b/src/osg/DisplaySettings.cpp index ef2f0e93aff..fa14bc8767f 100644 --- a/src/osg/DisplaySettings.cpp +++ b/src/osg/DisplaySettings.cpp @@ -120,7 +120,7 @@ void DisplaySettings::setDisplaySettings(const DisplaySettings& vs) _vertexBufferHint = vs._vertexBufferHint; - setShaderHint(_shaderHint); + setShaderHint(vs._shaderHint); _keystoneHint = vs._keystoneHint; _keystoneFileNames = vs._keystoneFileNames;