Merge pull request #3694 from techtonik/patch-1
Show driver information in verbose mode
This commit is contained in:
commit
c9a401e541
1 changed files with 7 additions and 0 deletions
|
@ -10780,9 +10780,16 @@ bool RasterizerGLES2::_test_depth_shadow_buffer() {
|
||||||
|
|
||||||
void RasterizerGLES2::init() {
|
void RasterizerGLES2::init() {
|
||||||
|
|
||||||
|
if (OS::get_singleton()->is_stdout_verbose()) {
|
||||||
|
print_line("Using GLES2 video driver");
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef GLEW_ENABLED
|
#ifdef GLEW_ENABLED
|
||||||
GLuint res = glewInit();
|
GLuint res = glewInit();
|
||||||
ERR_FAIL_COND(res!=GLEW_OK);
|
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
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue