summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2021-03-21 18:38:51 +0100
committerGitHub <noreply@github.com>2021-03-21 18:38:51 +0100
commit023062435918dca66281a98ca9c23bf53dcbea74 (patch)
treecb192a930d3efc5fd301563b8059c3b2a318884b
parentf0f96e3103c2e740fa4340a5f1854c41df65ffa2 (diff)
downloadopenttd-023062435918dca66281a98ca9c23bf53dcbea74.tar.xz
Fix f0f96e31: [OpenGL] warning: comparison of integer expressions of different signedness. (#8881)
-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);