From: Kahrl Date: Fri, 5 Jul 2013 02:24:05 +0000 (+0200) Subject: Don't rebuild the dummy shader (less SourceShaderCache warning spam) X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=922a30ee47edbd6255cd6cbea0f89f21c607094c;p=zefram%2Fminetest%2Fminetest_engine.git Don't rebuild the dummy shader (less SourceShaderCache warning spam) Also write something about rebuilding shaders to infostream in Client::afterContentReceived() --- diff --git a/src/client.cpp b/src/client.cpp index 5e682aaa..ccd2034f 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -2850,6 +2850,7 @@ void Client::afterContentReceived(IrrlichtDevice *device, gui::IGUIFont* font) m_tsrc->rebuildImagesAndTextures(); // Rebuild shaders + infostream<<"- Rebuilding shaders"<rebuildShaders(); // Update node aliases diff --git a/src/shader.cpp b/src/shader.cpp index 9cef7f35..58042e65 100644 --- a/src/shader.cpp +++ b/src/shader.cpp @@ -585,8 +585,10 @@ void ShaderSource::rebuildShaders() // Recreate shaders for(u32 i=0; iname, m_device, - m_shader_callback, &m_sourcecache); + if(info->name != ""){ + *info = generate_shader(info->name, m_device, + m_shader_callback, &m_sourcecache); + } } }