diff options
Diffstat (limited to 'src/shader.cpp')
-rw-r--r-- | src/shader.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/shader.cpp b/src/shader.cpp index 9cef7f353..58042e651 100644 --- a/src/shader.cpp +++ b/src/shader.cpp @@ -585,8 +585,10 @@ void ShaderSource::rebuildShaders() // Recreate shaders for(u32 i=0; i<m_shaderinfo_cache.size(); i++){ ShaderInfo *info = &m_shaderinfo_cache[i]; - *info = generate_shader(info->name, m_device, - m_shader_callback, &m_sourcecache); + if(info->name != ""){ + *info = generate_shader(info->name, m_device, + m_shader_callback, &m_sourcecache); + } } } |