diff --git a/Source/Core/VideoBackends/OGL/StreamBuffer.cpp b/Source/Core/VideoBackends/OGL/StreamBuffer.cpp index 47dfd14557..705c0b6702 100644 --- a/Source/Core/VideoBackends/OGL/StreamBuffer.cpp +++ b/Source/Core/VideoBackends/OGL/StreamBuffer.cpp @@ -61,20 +61,20 @@ StreamBuffer::~StreamBuffer() void StreamBuffer::CreateFences() { - for (int i=0; i #include #include "Common/GL/GLUtil.h" @@ -59,11 +60,11 @@ protected: u32 m_free_iterator; private: - static const int SYNC_POINTS = 16; + static constexpr int SYNC_POINTS = 16; int SLOT(u32 x) const { return x >> m_bit_per_slot; } const int m_bit_per_slot; - GLsync fences[SYNC_POINTS]; + std::array m_fences{}; }; }