mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Cleaned up love.graphics.newShader's wrapper code a bit.
--HG-- branch : minor
This commit is contained in:
@@ -190,7 +190,7 @@ bool File::write(const void *data, int64 size)
|
||||
// Manually flush the buffer in BUFFER_LINE mode if we find a newline.
|
||||
if (bufferMode == BUFFER_LINE && bufferSize > size)
|
||||
{
|
||||
if (memchr(data, '\n', (size_t) size) != NULL)
|
||||
if (memchr(data, '\n', (size_t) size) != nullptr)
|
||||
flush();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user