mirror of
https://github.com/love2d/love.git
synced 2026-08-20 04:30:09 +02:00
Fix compilation
--HG-- branch : minor
This commit is contained in:
@@ -80,9 +80,9 @@ void Texture::initQuad()
|
|||||||
|
|
||||||
void Texture::setGraphicsMemorySize(int64 bytes)
|
void Texture::setGraphicsMemorySize(int64 bytes)
|
||||||
{
|
{
|
||||||
totalGraphicsMemory = std::max(totalGraphicsMemory - graphicsMemorySize, 0LL);
|
totalGraphicsMemory = std::max(totalGraphicsMemory - graphicsMemorySize, (int64) 0);
|
||||||
|
|
||||||
bytes = std::max(bytes, 0LL);
|
bytes = std::max(bytes, (int64) 0);
|
||||||
graphicsMemorySize = bytes;
|
graphicsMemorySize = bytes;
|
||||||
totalGraphicsMemory += bytes;
|
totalGraphicsMemory += bytes;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user