Fixup comment
This commit is contained in:
parent
ac49ed0779
commit
9ce29d1104
|
@ -129,7 +129,8 @@ namespace backend { namespace opengl {
|
|||
break;
|
||||
case PushConstantType::Float:
|
||||
float value;
|
||||
// Use a memcpy to avoid strict-aliasing warnings.
|
||||
// Use a memcpy to avoid strict-aliasing warnings, even if it is still
|
||||
// technically undefined behavior.
|
||||
memcpy(&value, &mValues[stage][constant], sizeof(value));
|
||||
glUniform1f(location, value);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue