From 9d30d622aecf40ecf6e501bac3eed42cefb783d1 Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Tue, 18 Sep 2012 15:48:06 +0100 Subject: [PATCH] Expose the shader language version, to help diagnostics. --- src/Main/main.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 2e7f47bd7..04e075c88 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -155,6 +155,9 @@ struct GeneralInitOperation : public GraphicsContextOperation simRendering->setStringValue("gl-version", (char*) glGetString(GL_VERSION)); SG_LOG( SG_GENERAL, SG_INFO, glGetString(GL_VERSION)); + simRendering->setStringValue("gl-shading-language-version", (char*) glGetString(GL_SHADING_LANGUAGE_VERSION)); + SG_LOG( SG_GENERAL, SG_INFO, glGetString(GL_SHADING_LANGUAGE_VERSION)); + GLint tmp; glGetIntegerv( GL_MAX_TEXTURE_SIZE, &tmp ); simRendering->setIntValue("max-texture-size", tmp); -- 2.39.5