From de59fe04e73250229e6ac11f9314e1b75dbdef1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 24 Aug 2018 08:47:34 +0200 Subject: Add print_verbose to print to stdout only in verbose mode Equivalent of the cumbersome: if (OS::get_singleton()->is_stdout_verbose()) print_line(msg); --- drivers/gles2/rasterizer_gles2.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'drivers/gles2') diff --git a/drivers/gles2/rasterizer_gles2.cpp b/drivers/gles2/rasterizer_gles2.cpp index 8815205054..c926f2bcc4 100644 --- a/drivers/gles2/rasterizer_gles2.cpp +++ b/drivers/gles2/rasterizer_gles2.cpp @@ -138,9 +138,7 @@ RasterizerScene *RasterizerGLES2::get_scene() { void RasterizerGLES2::initialize() { - if (OS::get_singleton()->is_stdout_verbose()) { - print_line("Using GLES2 video driver"); - } + print_verbose("Using GLES2 video driver"); #ifdef GLAD_ENABLED if (!gladLoadGL()) { -- cgit v1.2.3