mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
ENABLE_SHADERS_MANAGER -> Added method GLShaderProgram::set_uniform(const char* name, double value)
This commit is contained in:
parent
df010a1d4e
commit
082a30a5db
2 changed files with 6 additions and 0 deletions
|
@ -211,6 +211,11 @@ bool GLShaderProgram::set_uniform(const char* name, float value) const
|
|||
return false;
|
||||
}
|
||||
|
||||
bool GLShaderProgram::set_uniform(const char* name, double value) const
|
||||
{
|
||||
return set_uniform(name, static_cast<float>(value));
|
||||
}
|
||||
|
||||
bool GLShaderProgram::set_uniform(const char* name, const std::array<float, 2>& value) const
|
||||
{
|
||||
int id = get_uniform_location(name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue