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; break;
case PushConstantType::Float: case PushConstantType::Float:
float value; float value;
// Use a memcpy to avoid strict-aliasing warnings, even if it is still // Use a memcpy to avoid strict-aliasing warnings, even if it is
// technically undefined behavior. // still technically undefined behavior.
memcpy(&value, &mValues[stage][constant], sizeof(value)); memcpy(&value, &mValues[stage][constant], sizeof(value));
glUniform1f(location, value); glUniform1f(location, value);
break; break;