mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Replace internal C++ newImage and newCanvas methods with newTexture
This commit is contained in:
@@ -821,12 +821,13 @@ Texture *Graphics::getTemporaryTexture(PixelFormat format, int w, int h, int sam
|
||||
if (texture == nullptr)
|
||||
{
|
||||
Texture::Settings settings;
|
||||
settings.renderTarget = true;
|
||||
settings.format = format;
|
||||
settings.width = w;
|
||||
settings.height = h;
|
||||
settings.msaa = samples;
|
||||
|
||||
texture = newCanvas(settings);
|
||||
texture = newTexture(settings);
|
||||
|
||||
temporaryTextures.emplace_back(texture);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user