summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2013-03-02 22:59:55 -0600
committerJordan Woyak <jordan.woyak@gmail.com>2013-03-02 23:00:14 -0600
commited90feb2b4169a98167ba90846aa27f8cd4bf50e (patch)
treedbf8f2ea50d29d86f424614ce59d5398b87294d2 /Source
parent2356e5c0e7dab9c0f541e48f8df5fd663d3b671f (diff)
Kill warning.
Diffstat (limited to 'Source')
-rw-r--r--Source/Plugins/Plugin_VideoOGL/Src/PerfQuery.cpp4
-rw-r--r--Source/Plugins/Plugin_VideoOGL/Src/PerfQuery.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/PerfQuery.cpp b/Source/Plugins/Plugin_VideoOGL/Src/PerfQuery.cpp
index 95311eb98d..db47217655 100644
--- a/Source/Plugins/Plugin_VideoOGL/Src/PerfQuery.cpp
+++ b/Source/Plugins/Plugin_VideoOGL/Src/PerfQuery.cpp
@@ -9,7 +9,7 @@ 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();
@@ -17,7 +17,7 @@ PerfQuery::PerfQuery()
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);
}
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/PerfQuery.h b/Source/Plugins/Plugin_VideoOGL/Src/PerfQuery.h
index 34c64e43a1..b96fe7a4a0 100644
--- a/Source/Plugins/Plugin_VideoOGL/Src/PerfQuery.h
+++ b/Source/Plugins/Plugin_VideoOGL/Src/PerfQuery.h
@@ -26,7 +26,7 @@ private:
};
// 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
@@ -34,10 +34,10 @@ private:
// 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];
};