StreamBuffer: Use std::array for fences

This commit is contained in:
Lioncash
2015-12-21 10:06:40 -05:00
parent 7b69fec8e7
commit 1eea95a5be
2 changed files with 13 additions and 12 deletions

View File

@ -4,6 +4,7 @@
#pragma once
#include <array>
#include <utility>
#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<GLsync, SYNC_POINTS> m_fences{};
};
}