Fix f0f96e31: [OpenGL] warning: comparison of integer expressions of different signedness. (#8881)

This commit is contained in:
frosch 2021-03-21 18:38:51 +01:00 committed by GitHub
parent f0f96e3103
commit 0230624359
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);