From 9ce29d1104aee29323675dd6fda5a514677b0c2a Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Fri, 13 Apr 2018 11:51:59 -0400 Subject: [PATCH] Fixup comment --- src/backend/opengl/CommandBufferGL.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;