cginternals / globjects

C++ library strictly wrapping OpenGL objects.
https://globjects.org
MIT License
538 stars 59 forks source link

Fix missing initialization of AbstractUniform::m_location #353

Closed j-o closed 7 years ago

j-o commented 7 years ago

Otherwise, depending on the value, this check may fail:

template<typename T>
void Uniform<T>::updateAt(gl::GLint location) const
{
    if (location < 0)
    {
        return;
    }

    setValue(location, m_value);
}