Cleaned up some graphics code.

This commit is contained in:
Alex Szpakowski
2015-03-20 00:16:36 -03:00
parent 7741adc7b4
commit d31168c0e0
6 changed files with 51 additions and 136 deletions
+3 -5
View File
@@ -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