Fixed compilation error.
It was failing with "'this' was not captured for this lambda function"
This commit is contained in:
@@ -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() ||
|
||||
|
||||
Reference in New Issue
Block a user