Update CommandBufferGL.cpp

This commit is contained in:
Stephen White 2018-04-13 15:30:42 -04:00 committed by Corentin Wallez
parent 9ce29d1104
commit 51f9987298
1 changed files with 2 additions and 2 deletions

View File

@ -129,8 +129,8 @@ namespace backend { namespace opengl {
break;
case PushConstantType::Float:
float value;
// Use a memcpy to avoid strict-aliasing warnings, even if it is still
// technically undefined behavior.
// 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;