mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-01 10:59:12 +00:00
This commit is contained in:
@@ -887,7 +887,7 @@ template <class T>
|
|||||||
static void ClearPixelBuffer(size_t len, T data)
|
static void ClearPixelBuffer(size_t len, T data)
|
||||||
{
|
{
|
||||||
T *buf = reinterpret_cast<T *>(_glMapBuffer(GL_PIXEL_UNPACK_BUFFER, GL_READ_WRITE));
|
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;
|
*buf++ = data;
|
||||||
}
|
}
|
||||||
_glUnmapBuffer(GL_PIXEL_UNPACK_BUFFER);
|
_glUnmapBuffer(GL_PIXEL_UNPACK_BUFFER);
|
||||||
|
Reference in New Issue
Block a user