Permalink
Browse files

Displays OpenGL version in the logs.

  • Loading branch information...
Julien Jorge
Julien Jorge committed Oct 12, 2013
1 parent 21b3934 commit 5230c33d8ad41e1d0e7b6218163ae3179a315c48
Showing with 6 additions and 1 deletion.
  1. +6 −1 bear-engine/core/src/visual/code/gl_renderer.cpp
@@ -456,7 +456,7 @@ void bear::visual::gl_renderer::ensure_window_exists()
if ( m_fullscreen )
flags |= SDL_WINDOW_FULLSCREEN;
claw::logger << "Setting video mode to "
claw::logger << claw::log_verbose << "Setting video mode to "
<< m_window_size.x << 'x' << m_window_size.y
<< ' ' << (m_fullscreen ? "fullscreen" : "windowed")
<< std::endl;
@@ -476,6 +476,11 @@ void bear::visual::gl_renderer::ensure_window_exists()
if ( m_gl_context == NULL )
VISUAL_SDL_ERROR_THROW();
claw::logger << claw::log_verbose << "OpenGL version is "
<< glGetString( GL_VERSION )
<< ", vendor is " << glGetString(GL_VENDOR)
<< std::endl;
delete[] m_screenshot_buffer;
m_screenshot_buffer =
new claw::graphic::rgba_pixel_8[ m_window_size.x * m_window_size.y ];

0 comments on commit 5230c33

Please sign in to comment.