mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
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
Block a user