mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Cleaned up some graphics code.
This commit is contained in:
@@ -52,7 +52,9 @@ Image::Image(love::image::ImageData *data, const Flags &flags)
|
||||
{
|
||||
width = data->getWidth();
|
||||
height = data->getHeight();
|
||||
|
||||
preload();
|
||||
loadVolatile();
|
||||
|
||||
++imageCount;
|
||||
}
|
||||
@@ -81,6 +83,7 @@ Image::Image(love::image::CompressedData *cdata, const Flags &flags)
|
||||
}
|
||||
|
||||
preload();
|
||||
loadVolatile();
|
||||
|
||||
++imageCount;
|
||||
}
|
||||
@@ -123,11 +126,6 @@ void Image::preload()
|
||||
filter.mipmap = defaultMipmapFilter;
|
||||
}
|
||||
|
||||
bool Image::load()
|
||||
{
|
||||
return loadVolatile();
|
||||
}
|
||||
|
||||
void Image::generateMipmaps()
|
||||
{
|
||||
// The GL_GENERATE_MIPMAP texparameter is set in loadVolatile if we don't
|
||||
|
||||
Reference in New Issue
Block a user