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:
parent
62e3593944
commit
66b5c08664
4 changed files with 8 additions and 11 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue