aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmath/llcamera.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llmath/llcamera.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/llmath/llcamera.cpp b/linden/indra/llmath/llcamera.cpp
index 13666ba..bc13c90 100644
--- a/linden/indra/llmath/llcamera.cpp
+++ b/linden/indra/llmath/llcamera.cpp
@@ -121,25 +121,25 @@ void LLCamera::setFar(F32 far_plane)
121 121
122size_t LLCamera::writeFrustumToBuffer(char *buffer) const 122size_t LLCamera::writeFrustumToBuffer(char *buffer) const
123{ 123{
124 memcpy(buffer, &mView, sizeof(F32)); 124 memcpy(buffer, &mView, sizeof(F32)); /* Flawfinder: ignore */
125 buffer += sizeof(F32); 125 buffer += sizeof(F32);
126 memcpy(buffer, &mAspect, sizeof(F32)); 126 memcpy(buffer, &mAspect, sizeof(F32)); /* Flawfinder: ignore */
127 buffer += sizeof(F32); 127 buffer += sizeof(F32);
128 memcpy(buffer, &mNearPlane, sizeof(F32)); 128 memcpy(buffer, &mNearPlane, sizeof(F32)); /* Flawfinder: ignore */
129 buffer += sizeof(F32); 129 buffer += sizeof(F32);
130 memcpy(buffer, &mFarPlane, sizeof(F32)); 130 memcpy(buffer, &mFarPlane, sizeof(F32)); /* Flawfinder: ignore */
131 return 4*sizeof(F32); 131 return 4*sizeof(F32);
132} 132}
133 133
134size_t LLCamera::readFrustumFromBuffer(const char *buffer) 134size_t LLCamera::readFrustumFromBuffer(const char *buffer)
135{ 135{
136 memcpy(&mView, buffer, sizeof(F32)); 136 memcpy(&mView, buffer, sizeof(F32)); /* Flawfinder: ignore */
137 buffer += sizeof(F32); 137 buffer += sizeof(F32);
138 memcpy(&mAspect, buffer, sizeof(F32)); 138 memcpy(&mAspect, buffer, sizeof(F32)); /* Flawfinder: ignore */
139 buffer += sizeof(F32); 139 buffer += sizeof(F32);
140 memcpy(&mNearPlane, buffer, sizeof(F32)); 140 memcpy(&mNearPlane, buffer, sizeof(F32)); /* Flawfinder: ignore */
141 buffer += sizeof(F32); 141 buffer += sizeof(F32);
142 memcpy(&mFarPlane, buffer, sizeof(F32)); 142 memcpy(&mFarPlane, buffer, sizeof(F32)); /* Flawfinder: ignore */
143 return 4*sizeof(F32); 143 return 4*sizeof(F32);
144} 144}
145 145