diff --git a/src/backend/opengl/CommandBufferGL.cpp b/src/backend/opengl/CommandBufferGL.cpp index c3028ab7f9..d3ee6de4f3 100644 --- a/src/backend/opengl/CommandBufferGL.cpp +++ b/src/backend/opengl/CommandBufferGL.cpp @@ -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;