summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-03-15 10:30:47 +0100
committerRémi Verschelde <remi@verschelde.fr>2016-03-15 10:30:47 +0100
commitc9a401e54172d87ed8c541b563b471d0ff36a33b (patch)
tree28b532c4c0cf3833060fd64af8bdd780209056c3 /drivers
parentaec4f57f9507208f9aef499d8a8e8d1642bf2c72 (diff)
parentba6858dd414f05f9937d3f2af8e21385d893ccfb (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.cpp7
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