summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/OGLBoundingBox.cpp
diff options
context:
space:
mode:
authorDr. Dystopia <jonis9898@hotmail.com>2024-07-24 06:24:51 +0200
committerDr. Dystopia <jonis9898@hotmail.com>2024-11-08 07:26:47 +0100
commit6d44afc7dd129603401ce1a7ee4a059be1fbdda4 (patch)
tree40118d5b05c1b88e035877eb0b4824fb49dcfe1b /Source/Core/VideoBackends/OGL/OGLBoundingBox.cpp
parent53ede795a2a7406872f0f5c872c7f67bd22f65e4 (diff)
Replace 'reinterpret_cast' with 'static_cast'
Diffstat (limited to 'Source/Core/VideoBackends/OGL/OGLBoundingBox.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/OGLBoundingBox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/OGL/OGLBoundingBox.cpp b/Source/Core/VideoBackends/OGL/OGLBoundingBox.cpp
index 6936163f3e..9b36a75b63 100644
--- a/Source/Core/VideoBackends/OGL/OGLBoundingBox.cpp
+++ b/Source/Core/VideoBackends/OGL/OGLBoundingBox.cpp
@@ -55,7 +55,7 @@ std::vector<BBoxType> OGLBoundingBox::Read(u32 index, u32 length)
GL_MAP_READ_BIT);
if (ptr)
{
- std::memcpy(values.data(), reinterpret_cast<const u8*>(ptr) + sizeof(BBoxType) * index,
+ std::memcpy(values.data(), static_cast<const u8*>(ptr) + sizeof(BBoxType) * index,
sizeof(BBoxType) * length);
glUnmapBuffer(GL_SHADER_STORAGE_BUFFER);