add more opengl info on startup to pc ui

albatross
Willem Melching 2020-09-03 14:31:31 +02:00
parent f71467b450
commit 8880ec81f2
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,9 @@ GLWindow::~GLWindow() {
void GLWindow::initializeGL() {
initializeOpenGLFunctions();
std::cout << "OpenGL version: " << glGetString(GL_VERSION) << std::endl;
std::cout << "OpenGL vendor: " << glGetString(GL_VENDOR) << std::endl;
std::cout << "OpenGL renderer: " << glGetString(GL_RENDERER) << std::endl;
std::cout << "OpenGL language version: " << glGetString(GL_SHADING_LANGUAGE_VERSION) << std::endl;
ui_state = new UIState();
ui_init(ui_state);