Fix linux build.
This commit is contained in:
parent
fd7427a1cf
commit
fbcc430e0e
@ -469,6 +469,11 @@ void glUniformMatrix4fvWraper(GLuint a, size_t b, unsigned c, const float *d)
|
||||
glUniformMatrix4fv(a, b, c, d);
|
||||
}
|
||||
|
||||
void glUniform3fWraper(GLuint a, float b, float c, float d)
|
||||
{
|
||||
glUniform3f(a, b, c, d);
|
||||
}
|
||||
|
||||
namespace MeshShader
|
||||
{
|
||||
|
||||
|
@ -65,12 +65,12 @@ void setUniformsHelper(const std::vector<GLuint> &uniforms, const core::matrix4
|
||||
setUniformsHelper<N + 1>(uniforms, arg...);
|
||||
}
|
||||
|
||||
void glUniform3fWraper(GLuint, size_t, unsigned, const float *mat);
|
||||
void glUniform3fWraper(GLuint, float, float, float);
|
||||
|
||||
template<unsigned N = 0, typename... Args>
|
||||
void setUniformsHelper(const std::vector<GLuint> &uniforms, const video::SColorf &col, Args... arg)
|
||||
{
|
||||
glUniform3f(uniforms[N], col.r, col.g, col.b);
|
||||
glUniform3fWraper(uniforms[N], col.r, col.g, col.b);
|
||||
setUniformsHelper<N + 1>(uniforms, arg...);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user