Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Kill warning.
  • Loading branch information
jordan-woyak committed Mar 3, 2013
1 parent 2356e5c commit ed90feb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Source/Plugins/Plugin_VideoOGL/Src/PerfQuery.cpp
Expand Up @@ -9,15 +9,15 @@ PerfQuery::PerfQuery()
: m_query_read_pos()
, m_query_count()
{
for (int i = 0; i != ARRAYSIZE(m_query_buffer); ++i)
for (u32 i = 0; i != ARRAYSIZE(m_query_buffer); ++i)
glGenQueries(1, &m_query_buffer[i].query_id);

ResetQuery();
}

PerfQuery::~PerfQuery()
{
for (int i = 0; i != ARRAYSIZE(m_query_buffer); ++i)
for (u32 i = 0; i != ARRAYSIZE(m_query_buffer); ++i)
glDeleteQueries(1, &m_query_buffer[i].query_id);
}

Expand Down
6 changes: 3 additions & 3 deletions Source/Plugins/Plugin_VideoOGL/Src/PerfQuery.h
Expand Up @@ -26,18 +26,18 @@ class PerfQuery : public PerfQueryBase
};

// when testing in SMS: 64 was too small, 128 was ok
static const int PERF_QUERY_BUFFER_SIZE = 512;
static const u32 PERF_QUERY_BUFFER_SIZE = 512;

void WeakFlush();
// Only use when non-empty
void FlushOne();

// This contains gl query objects with unretrieved results.
ActiveQuery m_query_buffer[PERF_QUERY_BUFFER_SIZE];
int m_query_read_pos;
u32 m_query_read_pos;

// TODO: sloppy
volatile int m_query_count;
volatile u32 m_query_count;
volatile u32 m_results[PQG_NUM_MEMBERS];
};

Expand Down

0 comments on commit ed90feb

Please sign in to comment.