Browse Source

Log graphics card vender in Window constructor.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
a47acc0e64
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/Window.cpp

+ 2
- 1
src/Window.cpp View File

@@ -306,9 +306,10 @@ Window::Window() {
exit(1);
}

const GLubyte* vendor = glGetString(GL_VENDOR);
const GLubyte* renderer = glGetString(GL_RENDERER);
const GLubyte* version = glGetString(GL_VERSION);
INFO("Renderer: %s", renderer);
INFO("Renderer: %s %s", vendor, renderer);
INFO("OpenGL: %s", version);

// GLEW generates GL error because it calls glGetString(GL_EXTENSIONS), we'll consume it here.


Loading…
Cancel
Save