1
0
Fork 0

Expose the shader language version, to help diagnostics.

This commit is contained in:
Stuart Buchanan 2012-09-18 15:48:06 +01:00
parent 39307d335c
commit 9d30d622ae

View file

@ -155,6 +155,9 @@ struct GeneralInitOperation : public GraphicsContextOperation
simRendering->setStringValue("gl-version", (char*) glGetString(GL_VERSION)); simRendering->setStringValue("gl-version", (char*) glGetString(GL_VERSION));
SG_LOG( SG_GENERAL, SG_INFO, 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; GLint tmp;
glGetIntegerv( GL_MAX_TEXTURE_SIZE, &tmp ); glGetIntegerv( GL_MAX_TEXTURE_SIZE, &tmp );
simRendering->setIntValue("max-texture-size", tmp); simRendering->setIntValue("max-texture-size", tmp);