Merge pull request #3694 from techtonik/patch-1

Show driver information in verbose mode
This commit is contained in:
Rémi Verschelde 2016-03-15 10:30:47 +01:00
commit c9a401e541
1 changed files with 7 additions and 0 deletions

View File

@ -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