Permalink
Browse files

Report opengl vendor and renderer.

  • Loading branch information...
1 parent 71969ac commit 88a5d08e912d37768f7edb203aca44e3080b29f6 Vincent Lejeune committed Jun 21, 2014
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/graphics/irr_driver.cpp
@@ -443,7 +443,10 @@ void IrrDriver::initDevice()
glGetIntegerv(GL_MAJOR_VERSION, &GLMajorVersion);
glGetIntegerv(GL_MINOR_VERSION, &GLMinorVersion);
}
- Log::info("IrrDriver", "OPENGL VERSION IS %d.%d", GLMajorVersion, GLMinorVersion);
+ Log::info("IrrDriver", "OpenGL version: %d.%d", GLMajorVersion, GLMinorVersion);
+ Log::info("IrrDriver", "OpenGL vendor: %s", glGetString(GL_VENDOR));
+ Log::info("IrrDriver", "OpenGL renderer: %s", glGetString(GL_RENDERER));
+ Log::info("IrrDriver", "OpenGL version string: %s", glGetString(GL_VERSION));
m_glsl = (GLMajorVersion > 3 || (GLMajorVersion == 3 && GLMinorVersion >= 1));
// Parse extensions

0 comments on commit 88a5d08

Please sign in to comment.