1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Fix deprecated calls with Irrlicht 1.9

This commit is contained in:
Jean-Patrick Guerrero 2021-03-16 19:55:10 +01:00 committed by sfan5
parent 62e3593944
commit 66b5c08664
4 changed files with 8 additions and 11 deletions

View file

@ -96,9 +96,10 @@ public:
if (has_been_set && std::equal(m_sent, m_sent + count, value))
return;
if (is_pixel)
services->setPixelShaderConstant(m_name, value, count);
services->setPixelShaderConstant(services->getPixelShaderConstantID(m_name), value, count);
else
services->setVertexShaderConstant(m_name, value, count);
services->setVertexShaderConstant(services->getVertexShaderConstantID(m_name), value, count);
std::copy(value, value + count, m_sent);
has_been_set = true;
}