Expose the shader language version, to help diagnostics.
This commit is contained in:
parent
39307d335c
commit
9d30d622ae
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue