From: Stuart Buchanan Date: Tue, 18 Sep 2012 14:48:06 +0000 (+0100) Subject: Expose the shader language version, to help diagnostics. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9d30d622aecf40ecf6e501bac3eed42cefb783d1;p=flightgear.git Expose the shader language version, to help diagnostics. --- 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);