diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-03-15 10:30:47 +0100 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2016-03-15 10:30:47 +0100 |
commit | c9a401e54172d87ed8c541b563b471d0ff36a33b (patch) | |
tree | 28b532c4c0cf3833060fd64af8bdd780209056c3 /drivers | |
parent | aec4f57f9507208f9aef499d8a8e8d1642bf2c72 (diff) | |
parent | ba6858dd414f05f9937d3f2af8e21385d893ccfb (diff) |
Merge pull request #3694 from techtonik/patch-1
Show driver information in verbose mode
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gles2/rasterizer_gles2.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gles2/rasterizer_gles2.cpp b/drivers/gles2/rasterizer_gles2.cpp index f9b58939dc..1568d93af7 100644 --- a/drivers/gles2/rasterizer_gles2.cpp +++ b/drivers/gles2/rasterizer_gles2.cpp @@ -10780,9 +10780,16 @@ bool RasterizerGLES2::_test_depth_shadow_buffer() { void RasterizerGLES2::init() { + if (OS::get_singleton()->is_stdout_verbose()) { + print_line("Using GLES2 video driver"); + } + #ifdef GLEW_ENABLED GLuint res = glewInit(); ERR_FAIL_COND(res!=GLEW_OK); + if (OS::get_singleton()->is_stdout_verbose()) { + print_line(String("GLES2: Using GLEW ") + (const char*) glewGetString(GLEW_VERSION)); + } #endif |