mirror of https://github.com/OpenTTD/OpenTTD.git
Fix f0f96e31: [OpenGL] warning: comparison of integer expressions of different signedness. (#8881)
This commit is contained in:
parent
f0f96e3103
commit
0230624359
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue