summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/video/opengl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/opengl.cpp b/src/video/opengl.cpp
index d142abfea..18c71dd29 100644
--- a/src/video/opengl.cpp
+++ b/src/video/opengl.cpp
@@ -887,7 +887,7 @@ template <class T>
static void ClearPixelBuffer(size_t len, T data)
{
T *buf = reinterpret_cast<T *>(_glMapBuffer(GL_PIXEL_UNPACK_BUFFER, GL_READ_WRITE));
- for (int i = 0; i < len; i++) {
+ for (size_t i = 0; i < len; i++) {
*buf++ = data;
}
_glUnmapBuffer(GL_PIXEL_UNPACK_BUFFER);