aboutsummaryrefslogtreecommitdiffstats
path: root/src/particle.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2017-09-26 22:37:52 -0400
committerClyne Sullivan <tullivan99@gmail.com>2017-09-26 22:37:52 -0400
commit8be1f74e878950cbbac3f05451341fc18892518b (patch)
tree8301f06ee0da2b27fb93b149736c6f7d2ace68ca /src/particle.cpp
parent19b2b1dde25885ada99deefe79266c2e22376e85 (diff)
windows 64-bit build
Diffstat (limited to 'src/particle.cpp')
-rw-r--r--src/particle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/particle.cpp b/src/particle.cpp
index f2604a6..3303027 100644
--- a/src/particle.cpp
+++ b/src/particle.cpp
@@ -72,7 +72,7 @@ void ParticleSystem::render(void)
};
//glBufferSubData(GL_ARRAY_BUFFER, offset, entrySize, coords);
- std::memcpy((void *)((unsigned long)vbobuf + offset), coords, entrySize);
+ std::memcpy(reinterpret_cast<void*>(reinterpret_cast<unsigned long long>(vbobuf) + offset), coords, entrySize);
}
UserAssert(glUnmapBuffer(GL_ARRAY_BUFFER) == GL_TRUE, "Failed to unmap the particle VBO");