mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-06 22:53:35 +00:00
Update CommandBufferGL.cpp
This commit is contained in:
parent
9ce29d1104
commit
51f9987298
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user