Fixed compilation error.

It was failing with "'this' was not captured for this lambda function"
This commit is contained in:
Deve
2018-01-25 20:53:39 +01:00
parent 9041649a39
commit 74af810d50

View File

@@ -408,7 +408,7 @@ std::shared_ptr<SPShader> SPShaderManager::buildSPShader(const ShaderInfo& si,
std::shared_ptr<SPShader> sps;
#ifndef SERVER_ONLY
sps = std::make_shared<SPShader>(si.m_shader_name,
[pi, ua, skinned](SPShader* shader)
[this, pi, ua, skinned](SPShader* shader)
{
// First pass
assert(!pi[0].m_vertex_shader.empty() ||