|
From: Tapio V. <aa...@us...> - 2010-11-01 22:22:16
|
Module: performous
Branch: opengl2
Commit: a789431f2f55c242104ba2dc6ac83389b3b4977a
Author: Tapio Vierros <tap...@gm...>
Date: Tue Nov 2 00:19:58 2010 +0200
Verbose logging mode now dumps some info about OpenGL.
---
game/video_driver.cc | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/game/video_driver.cc b/game/video_driver.cc
index b6a837a..63c193c 100644
--- a/game/video_driver.cc
+++ b/game/video_driver.cc
@@ -86,6 +86,11 @@ Window::Window(unsigned int width, unsigned int height, bool fs): m_windowW(widt
SDL_ShowCursor(SDL_DISABLE);
SDL_EnableUNICODE(SDL_ENABLE);
if (glewInit() != GLEW_OK) throw std::runtime_error("Initializing GLEW failed (is your OpenGL broken?)");
+ // Dump some OpenGL info
+ std::clog << "video/info: GL_VENDOR: " << glGetString(GL_VENDOR) << std::endl;
+ std::clog << "video/info: GL_VERSION: " << glGetString(GL_VERSION) << std::endl;
+ std::clog << "video/info: GL_RENDERER: " << glGetString(GL_RENDERER) << std::endl;
+ std::clog << "video/info: GL_EXTENSIONS: " << glGetString(GL_EXTENSIONS) << std::endl;
input::SDL::init();
shader = Shader(vertex_glsl, fragment_glsl);
}
|